8000 GitHub - e-kondr01/donations-backend: Backend for https://github.com/kotiksmelyi donations app. Reference for Django Channels + DRF
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

e-kondr01/donations-backend

Repository files navigation

Donations app backend

Python version

>= 3.10

Local

Installation

Django app

  1. Create venv
python3.10 -m venv .venv
  1. Activate venv
source .venv/bin/activate
  1. Install requirements
pip install -r app/requirements/local.txt

Run pip freeze after project's first requirements installation to pin requirements' versions.

  1. Copy .env
cp app/app/local.example.env app/app/.env

Docker and Docker compose

Refer to:

https://docs.docker.com/engine/install/

Deploy

Use the script to start PSQL in Docker Compose, apply migrations and run development server:

make local

Swagger Docs

Go to http://127.0.0.1:8000/api/docs after running server

Development

During development, use Black formatter, Pylint and Flake8.

Prod

Installation

Copy .env:

cp app/app/production.example.env app/app/.env

Deploy

Use shortcut script:

make up

About

Backend for https://github.com/kotiksmelyi donations app. Reference for Django Channels + DRF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0