denokenya / education-backend

Django-based backend for our learning management system

Home Page:https://education.borshev.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CircleCI Maintainability Test Coverage

Django-based production project, integrated with Tinkoff, zoom.us, Mailchimp, Postmark, S3 and telegram. Frontend is built on vue.js in the separate repo.

Configuration

Configuration is stored in src/app/.env, for examples see src/app/.env.ci

Installing on a local machine

This project requires python3.8 and sqlite.

Install requirements:

cd src && pip install -r requirements.txt
cp app/.env.ci app/.env  # default environment variables
./manage.py migrate
./manage.py createsuperuser

Testing:

# run unit tests
$ pytest

Development servers:

# run django dev server
$ ./manage.py runserver

Backend Code requirements

Style

  • Obey django's style guide.
  • Configure your IDE to use flake8 for checking your python code. For running flake8 manualy, do cd src && flake8
  • Prefer English over your native language in comments and commit messages.
  • Commit messages should contain the unique id of issue they are linked to (refs #100500)
  • Every model and a model method should have a docstring.

Code organisation

About

Django-based backend for our learning management system

https://education.borshev.com

License:MIT License


Languages

Language:Python 99.2%Language:Dockerfile 0.5%Language:Makefile 0.2%Language:JavaScript 0.1%Language:CSS 0.1%