Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Running the Backend

Django-supabase Logo

Virtual environment

Make a python virtual environment with the following command:

python3 -m venv .venv

Activate the virtual environment

source .venv/bin/activate

Install dependencies

Install the required packages with the following command:

pip install -r requirements.txt

Required Environment variables

  • DEFAULT_DB_NAME=''
  • DEFAULT_DB_USER=''
  • DEFAULT_DB_PASSWORD=''
  • DEFAULT_DB_HOST=''
  • DEFAULT_DB_PORT=''
  • SUPABASE_URL=''
  • SUPABASE_KEY=''
  • APP_SECRET_KEY=''
  • ALLOWED_HOSTS='localhost:8000,127.0.0.1,your-frontend-url'

Start the first migration

At first, create a superuser, (remember the pass you are giving)

python manage.py createsuperuser

Then create and make the migration

python manage.py makemigrations
python manage.py migrate

Running the backend

To run the backend server, use the following command:

python manage.py runserver

Access the swagger API docs at

http://127.0.0.1:8000/swagger/

About

No description or website provided.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages