Skip to content

Site to display the rating of students at the university

License

Notifications You must be signed in to change notification settings

Vemestael/drf_student_rating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drf_student_rating

About

Site to display the rating of students at the university

Installation and using

This project provides you a working Django environment without requiring you to install Python/Django, a web server, and any other server software on your local machine. For this, it requires Docker and Docker Compose.

  1. Install Docker and Docker-compose;

  2. Clone this project and then cd to the project folder;

  3. Create your own .env file by copying .env.example:

    $ cp src/.env.example src/.env
  4. Update the environment variables in the docker-compose.yml and .env files.

  5. Build the images and run the containers:

    $ docker-compose -f docker-compose.yml up -d --build
  6. Run database migrations:

    $ docker-compose run django python manage.py migrate
  7. Collects the static files into STATIC_ROOT:

    $ docker-compose run django python manage.py collectstatic
  8. You've done! Main page is available on http://localhost

  9. After finishing work, you can stop running containers:

    $ docker-compose down