Skip to content

SAY-DAO/apiv3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API-V3

Refactored version of the backend using django

Test Badge codecov

TODOs

  • Readme
  • Setup the project
  • Refactoring panel apis
  • Refactoring app apis
  • Migrate db

Local Development

Installing Dependencies

Make sure u have postgres11+ and redis

$ sudo apt-get install libpq-dev postgresql redis-server redis-tools

Setup Python environment

- Make sure you have python3.8+
- Install poerty: https://python-poetry.org/docs/#installation
- (optional but recomended) Enable tab completion: https://python-poetry.org/docs/#enable-tab-completion-for-bash-fish-or-zsh

Activating virtual environment

$ poetry shell

Upgrade pip and poetry to the latest version

$ pip install -U pip
$ poetry self update

Installing dependencies

$ poetry install

For development

$ poetry install --dev

Migrate DB

$ poetry run python api/manage.py migrate

Running locally

$ poetry run python api/manage.py runserver

Testing

For the testing, we are using pytest and pytest-django.

Run Tests

poetry run pytest

or if you are inside virtaulenv, simply just:

pytest

About

Refactored version of the backend using django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages