{% extends "account/layout.html" %} {% block title %}{{ super() }} - {{ page | capitalize }} - {{ project.name }}{% endblock %} {% block pagetitle %}
/ {{ project.name | upper }}
{% endblock %} {% block content %} {% include 'modals/confirm.html' %} {% include 'projects/modal.html' %} {% for (category, message) in get_flashed_messages(request) %}
{{ message }}
{% endfor %}
{% set lang_icon = {'python': 'python', 'javascript': 'js', 'php': 'php', 'bun': 'js'}.get(project.language | lower, 'code') %}

{{ project.name | title }}

{{ project.language | title }}
{{ funcs | length }}
Functions
{{ environs | length }}
Env Vars
Quick Actions
Reinstall Dependencies Copy Project ID
Danger Zone
Project Overview
Functions
{{ funcs | length }}
Environment Vars
{{ environs | length }}
Visibility
{% if project.private %} Private {% else %} Public {% endif %}
Project Details
{{ project.id }}
{% set lang_icon = {'python': 'python', 'javascript': 'js', 'php': 'php', 'bun': 'js'}.get(project.language | lower, 'code') %} {{ project.language | title }}
{{ project.created_at | default('N/A') }}
{{ project.updated_at | default('N/A') }}
Endpoints
{% for func in funcs[:5] %}
{{ func.name }}
/run/{{ project.id }}/{{ func.name }}
{% else %}

No functions defined

{% endfor %} {% if funcs | length > 5 %} {% endif %}
Functions
{{ funcs | length }} total
{% if funcs %}
{% for func in funcs %} {% endfor %}
Name Endpoint Method Actions
{{ func.name }} /run/{{ project.id }}/{{ func.name }} GET/POST
{% else %}
No functions defined

Add functions to your project code to expose them as endpoints

{% endif %}
Environment Variables
{% if environs %}
{% for key, value in environs.items() %} {% set id = 'env' + (loop.index | string) %} {% set envKey = 'envKey' + (loop.index | string) %}
{% endfor %}
{% else %}
No environment variables

Add environment variables to configure your project

{% endif %}
Project Settings
Visibility
Project Visibility
{% if project.private %} This project is private and only accessible to you. {% else %} This project is public and accessible to everyone. {% endif %}
Dependencies
Reinstall Dependencies
Reinstall all project dependencies from requirements.txt or package.json
Reinstall
Linked Database
Database Connection
{% if project.database_id %} Connected to database {% else %} No database linked to this project {% endif %}
{% if project.database_id %} Connected {% else %} Create Database {% endif %}
API Usage
cURL Example
curl
curl -X POST "{{ request.base_url }}run/{{ project.id }}/index" \
  -H "Authorization: Bearer {{ request.session['access_token'] }}" \
  -H "Content-Type: application/json" \
  -d '{"key": "value"}'
Python
python
import requests

response = requests.post(
    "{{ request.base_url }}run/{{ project.id }}/index",
    headers={
        "Authorization": "Bearer {{ request.session['access_token'] }}"
    },
    json={"key": "value"}
)
print(response.json())
JavaScript
javascript
const response = await fetch(
  "{{ request.base_url }}run/{{ project.id }}/index",
  {
    method: "POST",
    headers: {
      "Authorization": "Bearer {{ request.session['access_token'] }}"
    },
    body: JSON.stringify({key: "value"})
  }
);
{{ request.session['access_token'] }}
{% endblock %} {% block scripts %} {{ super() }} {% endblock %}