bilal1031 / BookStore-Backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting Up and Using the Book Store API

This guide provides steps to set up and run the Book Store API on Windows.

Setup

  1. Create a Virtual Environment
   python -m venv venv
  1. Activate the Virtual Environment
   venv\Scripts\activate
  1. Install Required Packages
   pip install -r /path/to/requirements.txt

Running the Server

Navigate to the server directory and perform the following commands:

Navigate to the server directory

cd server

Perform migrations

python manage.py makemigrations
python manage.py migrate

Start the server

python manage.py runserver

Usage

  1. Postman Collection: Load the file Book store.postman_collection located in the root folder into Postman.

  2. 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.

About


Languages

Language:Python 100.0%