Skip to content

social-network-ya-practicum/backend

Repository files navigation

workflow

Backend for CSN project

Stack:

  • Python 3.10
  • Django Rest Framework
  • Djoiser
  • Postgres
  • Docker

Launch the project

1. Git clone:

git clone https://github.com/social-network-ya-practicum/corporate-social-network.git && \
cd corporate-social-network/backend

2. Install depencies.

pip install -r requirements.txt

3. Rename .env_example to .env

mv ./.env_example ./.env

4. Run docker-compose from /infra

docker-compose up -d --build

5. Make migrates and collectstatic

docker exec -it infra-web-1 python manage.py migrate && \
docker exec -it infra-web-1 python manage.py collectstatic --no-input

6. Project documentation is available at:

https://csn.sytes.net/swagger/ https://csn.sytes.net/redoc/