Skip to content

Ajayos/MI_LIBRO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MI LIBRO

MI LIBRO is a book management system built with Node.js, Express and Reactjs with MUI Theme.

Docker Repository on Quay

Project Information

Description

MI LIBRO is a web application that allows users to manage books. It provides features such as adding new books, renting or selling books, tracking book status, and user interactions like comments and likes.

Installation

  1. Clone the repository:
git clone https://github.com/Ajayos/MI_LIBRO.git
  1. Change to MI_LIBRO:
cd MI_LIBRO
  1. Install the dependencies:
npm install
  1. Set up the database configuration in the .env file.

  2. Start the server:

npm start

Usage

  1. Start the server:
npm start

The server will start running on http://localhost:3000.

  1. Access the MI LIBRO application in a web browser by visiting http://localhost:3000.

  2. If a Public folder is found in the project directory, the server will serve the index.html file from the Public folder as a static file.

    • If the Public folder exists and contains an index.html file, it will be displayed in the web browser.
    • If the Public folder does not exist or does not contain an index.html file, the server will display a default "Server Running" message.
  3. Use the provided routes to interact with the book management system. For example:

    • To view all books: GET /api/v1/books
    • To add a new book: POST /api/v1/books
    • To add a comment: POST /api/v1/books/:id/comments
    • To like a book: POST //api/v1books/:id/likes
    • *Replace :id with the actual ID of the book.

Note: Make sure to set up the database configuration in the .env file before starting the server.