https://github.com/gowthertg/booksapidjango
"BooksApiDjango" on GitHub offers a lean Django project for efficiently managing book data via a RESTful API. It provides essential CRUD operations, making it easy to integrate book functionalities into web applications.
https://github.com/gowthertg/booksapidjango
Last synced: 2 months ago
JSON representation
"BooksApiDjango" on GitHub offers a lean Django project for efficiently managing book data via a RESTful API. It provides essential CRUD operations, making it easy to integrate book functionalities into web applications.
- Host: GitHub
- URL: https://github.com/gowthertg/booksapidjango
- Owner: GowthertG
- Created: 2024-05-13T12:17:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-14T22:55:23.000Z (about 1 year ago)
- Last Synced: 2025-01-23T14:35:03.101Z (4 months ago)
- Language: Python
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BooksApiDjango
## Overview
BooksApiDjango is a Django REST framework application that provides an API for managing a collection of books. This repository serves as a starting point for building a backend system to manage books.## Prerequisites
Before running the application, ensure you have the following installed:
- Python 3.x
- Django
- Django REST Framework## Installation
1. Clone this repository to your local machine.
```bash
git clone https://github.com/GowthertG/BooksApiDjango.git
```
2. Navigate to the project directory.
```bash
cd BooksApiDjango
```
## Setting up Virtual Environment and Install requirements1. Create a Virtual Environment:
Navigate to your project directory and run the following command to create a virtual environment named `.venv`:
```bash
python3 -m venv .venv
```2. Activate the Virtual Environment:
- **macOS/Linux:**
```bash
source .venv/bin/activate
```- **Windows:**
```bash
.venv\Scripts\activate
```3. Install requirements:
Run the following command to install requirements inside your virtual environment:
```bash
pip install -r requirements.txt
```
## Running the Application
1. Apply migrations to create the database schema.
```bash
python manage.py migrate
```
2. Run the development server.
```bash
python manage.py runserver
```
3. Access the API at http://127.0.0.1:8000/.## API Endpoints
- `/`:
- **Description:** Endpoint to list all books.
More endpoints for CRUD operations are under development and will be added soon.## Usage
- Access the application at `http://127.0.0.1:8000/` to view the list of all books.