Educational Content Management System API is built with Django, designed for course creation, student enrollment, quiz administration, and progress tracking.
Django
anddjangorestframwework
for building the APIpoetry
for managing dependenciesmypy
static typingflake8
for lintingblack
for code formattingpre-commit
to enforces the linting and code formatting
The project uses black
for code formatting and flake8
for linting, integrated through pre-commit
hooks to ensure code consistency and quality.
-
Clone the Repository
git clone [email protected]:khasizadaj/edu_cms_api.git
-
Install Dependencies
Note: This step expects
poetry
library to be installed at global scope.# in: edu_cms_api python3 -m poetry install # or python -m poetry install
-
Environment Setup
cp .env.example .env # Edit .env to set your environment variables
-
Activate environment
python3 -m poetry shell # or python -m poetry shell
-
Install Pre-commit Hooks
pre-commit install
-
Database Migrations:
# in: src make migrate
-
Run the Server:
# in: src make run
-
Access the API: Available at
http://127.0.0.1:8000/
.
Adhere to code style guidelines and add tests for new features. Pre-commit hooks must be used to ensure code quality.
- Javid "JAXA" Khasizada