Quick start

  1. git clone this repository:

    git clone https://github.com/nanakin/OC-P13-Django-CICD.git Django-CICD
    
  2. Move to the project directory:

    cd Django-CICD
    
  3. Install poetry (if not installed yet), by following the official documentation.

  4. Install project dependencies in a new virtual environment using poetry:

    poetry install
    
  5. Rename a .env.example file as .env:

    mv .env.example .env
    
  6. Edit the .env file to set the environment variables

  7. Apply database migrations:

    poetry run python manage.py migrate
    
  8. Collect static files (if your environment variable DEBUG is False):

    poetry run python manage.py collectstatic
    
  9. Run a development server locally:

    poetry run python manage.py runserver
    
  10. Open your browser and go to http://127.0.0.1:8000/ to see the application running.