Refactored version of the backend using django
- Readme
- Setup the project
- Refactoring panel apis
- Refactoring app apis
- Migrate db
Make sure u have postgres11+ and redis
$ sudo apt-get install libpq-dev postgresql redis-server redis-tools
- 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
$ poetry shell
$ pip install -U pip
$ poetry self update
$ poetry install
$ poetry install --dev
$ poetry run python api/manage.py migrate
$ poetry run python api/manage.py runserver
For the testing, we are using pytest
and pytest-django
.
poetry run pytest
or if you are inside virtaulenv, simply just:
pytest