prerequisites:
Python recent version
Git Bash
When running the project for the first time in Windows using powershell,
git clone https://github.com/adnangif/library-management-backend.git
cd library-management-backend
Create a virtual environment
python -m venv env
Activating the virtual environment in windows
.\env\Scripts\Activate.ps1
Installing inside virtualenv is recommended, however you can start your project without virtualenv too.
Install project dependencies:
pip install -r requirements.txt
mysql credentials
- Copy The contents of mysql_credentials_example.json and create a file "mysql_credentials.json"
- Edit "mysql_credentials.json" and place database informations like username,password,database
You can now run the development server:
python manage.py runserver