This guide provides steps to set up and run the Book Store API on Windows.
- Create a Virtual Environment
python -m venv venv
- Activate the Virtual Environment
venv\Scripts\activate
- Install Required Packages
pip install -r /path/to/requirements.txt
Navigate to the server directory and perform the following commands:
cd server
python manage.py makemigrations
python manage.py migrate
python manage.py runserver
-
Postman Collection: Load the file
Book store.postman_collection
located in the root folder into Postman. -
API Authentication:
- The API utilizes token authentication. Postman setup is already configured.
- Upon obtaining a token, replace it with the variable
Token {{bearer}}
in Postman to access all other APIs apart from authentication. - The Postman collection version is v2.1.