GithubHelp home page GithubHelp logo

caglaar / library_app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 32 KB

A Django-based REST API for library management, using Python and PostgreSQL. Ideal for integrating or developing a library system with a scalable backend.

Python 100.00%

library_app's Introduction

What is it?

A Django-based REST API for library management, using Python and PostgreSQL. Ideal for integrating or developing a library system with a scalable backend.

Why I need to this project?

  • If you develop the library project and you need a REST API. And you don't want to spend your time on the Back-end. This project is for you because it's easy to understand and useful.
  • If your library application involves managing various models such as book checkouts, user information, and reviews, a REST API is an ideal solution for these functionalities. REST APIs effectively handle such data management, enhancing the scalability and flexibility of your application.

What kind of end-points does this project contain?

  1. Contains user list and detail end-point.
    • ....../api/users/
    • ....../api/users/int:pk
  2. Contains review list and detail end-point.
    • ....../api/review/
    • ....../api/review/int:pk/
  3. Contains do review end-point.
    • This end-point alowed only reviewer and admin person editting and deleting
    • ....../api/review/int:book_pk/make_review/
  4. Contains book list and detail end-point.
    • ....../api/books/
    • ....../api/books/int:pk

Whether you are a user or not, you have the authority to 'SAFE_METHODS' except for commenting. For other methods, the user must log in and the user cannot change the comment if it is not his/her own comment.

What is the api models ?

diagram

How to install and run this repository?

  1. Download the repository either via the interface or the terminal.

  2. Navigate to the project directory.

location

  1. Create and activate your virtual environment:

    • For Windows:

      python -m venv myenv
      myenv\Scripts\activate
    • For macOS and Linux:

      python3 -m venv myenv
      source myenv/bin/activate
  2. Install the dependencies:

    pip install -r requirements.txt
    
  3. Than we need to PostgreSQL Database:

    • So you must download PostgreSQL and create Database.
  4. Perform migration operations:

    • For Windows:

      python manage.py makemigrations
      python manage.py migrate
    • For macOS and Linux:

      python3 manage.py makemigrations
      python3 manage.py migrate
  5. Run the project:

    • For Windows:

      python manage.py runserver
    • For macOS and Linux:

      python3 manage.py runserver

library_app's People

Contributors

caglaar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.