Skip to content

Prrromanssss/Fastgram-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

143 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastgram

flake8 tests

Image of the responses

Image of the analyzed delivery 1

Image of the analyzed delivery 2

Deployment instructions

1. Cloning project from GitHub

1.1 Run this command

git clone https://github.com/Prrromanssss/Fastgram.git

2. Creation and activation venv

2.1 First of all, from root directory run this commands to activate venv

Mac OS / Linux

python3 -m venv venv
source venv/bin/activate

Windows

python -m venv venv
.\venv\Scripts\activate

3. Installation all requirements

3.3 Run this command

pip install -r requirements.txt

4. Generate file with virtual environment variables (.env)

4.1 Generate file '.env' in root directory with structure specified in the 'examples/env_example.txt' file

5. Making migrations

5.1 To apply your migrations run this command

python fastgram/manage.py migrate

6. Database setup

6.1.1 To load data for database from the fixtures run this command

python fastgram/manage.py loaddata data.json

7. Authorizing admin user

7.1.1 If you have loaded data from the fixtures, run this command to authorize admin user

python fastgram/manage.py createsuperuser

8. Running project

8.1 Run this command

python fastgram/manage.py runserver

8.2 After running server follow link '127.0.0.1:8000/admin' or 'localhost:8000/admin'


ER-diagram

Image of the ER-diagram


About

Service to find the optimal delivery

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors