Backend of a project time tracking application
-
Clone the repository
git clone <repository_url>
-
Open the cloned repository and in the base directory, create a virtual environment with this command for linux/Mac users
python -m venv venv
-
Activate the virtual environment. Use this command for linux/Mac users
source venv/bin/activate
-
Create a .env file for environment variables as specified in .env_example
-
Install the requirements
pip install -r requirements.txt
-
Finally, run the application, on default it runs on port 8000
python manage.py runserver
-
To run tests,
python manage.py test
To access the various endpoints in the API, visit:
http://localhost:8000/docs/