Skip to content

Tharshen2124/software-design-backend

Repository files navigation

Backend Setup Instructions

Prerequisites

  • Python 3.8+
  • Supabase account

Installation

1. Create & Activate Virtual Environment

Windows:

python -m venv venv
venv\Scripts\activate

Mac/Linux:

python3 -m venv venv
source venv/bin/activate

2. Install Dependencies

pip install -r requirements.txt

3. Set Up Environment Variables

Create a .env file in the project root with the following variables:

FRONTEND_URL=your_frontend_url
BACKEND_URL=your_backend_url
SUPABASE_URL=your_supabase_project_url
SUPABASE_KEY=your_supabase_anon_key
SUPABASE_REDIRECT_PATH=auth/callback/
DJANGO_SECRET_KEY=your_django_secret_key
SENDGRID_KEY=your_sendgrid_api_key

4. Run Migrations

python manage.py migrate

5. Start Development Server

python manage.py runserver

The server will be accessible at: http://localhost:8000

6. Create Superuser (Optional)

python manage.py createsuperuser

First-Time Setup Resources

If you're setting up for the first time, you may need to install:

Troubleshooting

If you encounter any issues during setup, please check that all prerequisites are properly installed and environment variables are correctly configured.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages