ankitdevelops / bp-assignment

Repository from Github https://github.comankitdevelops/bp-assignmentRepository from Github https://github.comankitdevelops/bp-assignment

Assignment Solution

Installations

  1. Create a Virtual Environment:

    • Use any of the following commands:
    python -m venv env
    
    # or
    
    python3 -m venv env
  2. Activate the Virtual Environment:

    • On Linux/MacOS:
    source env/bin/activate
    • On Windows:
    env\Scripts\activate
  3. Install the Requirements:

    pip install -r requirements.txt
  4. Move to the src Directory:

    cd src
  5. Add the .env File:

    • Paste the .env file attached in the email into the src directory.
  6. Run Migrations:

    • Apply the database migrations with the following command:
    • It is not required, as I am using PostgreSQL from Neon. I have already applied the migrations.
    python manage.py migrate
  7. Start the Server:

    python manage.py runserver
  8. Run the Tests:

    • To execute the test cases, use the following command:
    python manage.py test

About


Languages

Language:Python 100.0%