Skip to content

Axel-Pion-MDS/M1_Project_Timer_Back

Repository files navigation

MDS M1 - Project Timer Back

Pythonlatest Django4.1.3

Packages

Psycopg22.9.5

Getting started

Before starting

Check if you have installed the following application :

  • Docker

How use application

Create .env file

$ cp .env.sample .env

Update variables inside .env file

$ touch .env

Modify the file with the value you want

# Configure database name, user and password.
POSTGRES_DB=your_db_name
POSTGRES_USER=your_db_user
POSTGRES_PASSWORD=your_db_password

# Database manager PGADMIN
PGADMIN_DEFAULT_EMAIL=your_email
PGADMIN_DEFAULT_PASSWORD=your_password

Build application

$ docker-compose build

Start application

$ docker-compose up -d

Migrate the database

$ docker-compose run --rm api python manage.py makemigrations
$ docker-compose run --rm api python manage.py migrate

Use -d if you want to detach the container

Postman

About

This is the Back End repository for the My Digital School Project Timer

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •