This Django project is designed to manage books in different bookshops. It provides a RESTful API for storing and retrieving information about books, authors, and storing history.
-
Clone the repository:
git clone https://github.com/srinivaskstpl/book_storage.git cd book_storage
-
Install dependencies:
pip install -r requirements.txt
-
Apply migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
The server will be running at http://localhost:8000/ by default.
-
Build Docker:
docker build -t <your-image-name> .
-
Run docker container:
docker run -p 8000:8000 -d <your-image-name>
To run the test cases, use the following command:
python manage.py test
## Postman collection
```bash
You can find postman collection JSON - Book_store.postman_collection.json
```