Skip to content

GIOVESS/library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Management System

A simple Django-based library management system with REST API functionality.

Features

  • Book management (CRUD operations)
  • REST API endpoints for book data
  • SQLite database (default)
  • Django admin interface

Setup

  1. Clone the repository:

    git clone https://github.com/GIOVESS/library.git
    cd library
  2. Create and activate virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # Linux/Mac
    .venv\Scripts\activate    # Windows
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run migrations:

    python manage.py migrate
  5. Create superuser (optional):

    python manage.py createsuperuser
  6. Run development server:

    python manage.py runserver

API Endpoints

  • GET /api/ - List all books
  • POST /api/ - Add new book
  • GET /api/<id>/ - Get specific book details
  • PUT /api/<id>/ - Update book
  • DELETE /api/<id>/ - Remove book

Project Structure

library/
├── lib/               # Main project folder
│   ├── settings.py    # Django settings
│   └── urls.py        # Main URLs
├── books/             # Books app
│   ├── models.py      # Book model
│   └── ...
├── apis/              # API app
│   ├── serializers.py # DRF serializers
│   ├── views.py       # API views
│   └── ...
└── manage.py          # Django management script

Admin Access

Access the admin panel at http://localhost:8000/admin/ after creating a superuser.

Requirements

  • Python 3.8+
  • Django 5.0+
  • Django REST Framework

About

A simple Django-based library management system with REST API functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors