Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 996 Bytes

File metadata and controls

59 lines (36 loc) · 996 Bytes

CAC Backend

Setup

  1. Create a virtual environment:

    python -m venv venv
  2. Activate the virtual environment:

    • For Windows:

      venv\Scripts\activate
    • For macOS/Linux:

      source venv/bin/activate
  3. Install the required libraries:

    pip install -r requirements.txt

Run the Django Server

  1. Follow .env.template to setup your database settings in the .env

  2. Apply database migrations:

    python manage.py migrate
  3. Start the Django development server:

    python manage.py runserver
  4. Open your web browser and visit http://localhost:8000 to access the application.

Additional Notes

  • If you need to deactivate the virtual environment, simply run:

    deactivate
  • For more information on Django, refer to the official documentation.