Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 1.06 KB

readme.md

File metadata and controls

68 lines (43 loc) · 1.06 KB

Bookstore API

This Django app is designed as a technical assesment for a django developer at Hadi-finance.

Installation

  1. Clone the repository to your local machine:
    git clone https://github.com/Afeez1131/hadi-task.git
  1. Navigate to the project directory:
  cd django-app-name
  1. Create and activate a virtual environment:

      python -m venv env

    For Windows:

    env\Scripts\activate

    For macOS/Linux:

    source env/bin/activate
  2. Install the required dependencies:

pip install -r requirements.txt

Database Migration

  1. Apply migrations to set up the database schema:
python manage.py migrate

Running Tests

To run tests, execute the following command:

python manage.py test

Usage

To start the development server, run the following command:

python manage.py runserver

Access the application by sending a GET request to http://127.0.0.1:8000/api/ using curl, postman or any other API client.