Skip to content

MomsPops/MomsPops-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MomsPops API

Build Status

Work branch - development

For developers:

Аgreements:

  • default .env file: .dev.env (in ./src);
  • default database: Postgres;
  • default requirements file: "requirements.txt";
  • unit tests folders: "tests" folder in each app with "test_model.py" and "test_view.py";
  • model managers: custom manager should be extra attributes; You can change it in settings.

Applications:

  • core: project root app;

  • api: api application;

  • users

  • coordinates

  • locations

  • notifications

  • profiles

  • chat

  • reactions

Important Files and Folders:

  • service: abstract_models, vk_api
  • .flake8: linter settings
  • mypy.ini: settings for checking typing configuration

Environ variables example:

".dev.env" file in ./src:

SECRET_KEY=secret_SECRET

DB_NAME=mosmpops_example
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=postgres

Linter:

We use flake8.

flake8

Type-checker:

We use mypy

mypy .

PRs:

IMPORTANT! You should check your code by linter and type-checker before making pull-request.

Installing requirements

pip install -r requirements.txt

Running application

cd src
python manage.py makemigrations
python manage.py migrate
python manage.py runserver

Database schema

https://lucid.app/lucidchart/736ac949-7e84-4be3-96b2-25e91ec53ec8/edit?beaconFlowId=C39989B530A6D57F&invitationId=inv_c894ff77-5e97-4e8d-823f-0ffeb53dc3c7&page=0_0#

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages