Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pintu544/bookapis
Create Book app all of the crud operation
https://github.com/pintu544/bookapis
es6 expressjs mongodb mongoose nodejs
Last synced: 13 days ago
JSON representation
Create Book app all of the crud operation
- Host: GitHub
- URL: https://github.com/pintu544/bookapis
- Owner: pintu544
- Created: 2024-11-13T17:08:55.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-13T17:25:11.000Z (about 1 month ago)
- Last Synced: 2024-12-10T23:06:20.519Z (13 days ago)
- Topics: es6, expressjs, mongodb, mongoose, nodejs
- Language: JavaScript
- Homepage: https://bookapis.onrender.com/api/v1/books
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Book Listing Web Application
A simple web application that allows users to view, add, and delete books. The application includes both frontend and backend functionality, allowing users to manage a list of books with fields for title, author, and description.
Features
View Books: Display a list of books with details (title, author, description).
Add Book: Add a new book by entering title, author, and description.
Delete Book: Remove a book from the list.Tech Stack
Frontend: React.js, Tailwind CSS
Backend: Node.js, Express.js, MongoDB
Database: MongoDB Atlas (cloud database)Backend (Node.js + Express.js + MongoDB)
- API to get, add, and delete books.
Tech Stack
Node.js - Runtime environment
Express - Backend framework
MongoDB - DatabaseSetup and Installation
Installation
Backend
Clone the repository:git clone https://github.com/pintu544/BookApis
cd BookApisInstall Dependencies
bash
npm installEnvironment Variables
Create a
.env
file in the root directory and configure the following variables:
``
`PORT=5000
MONGO_URI=your_mongodb_connection_string``
Running the Application
To start the server, run:
bash
`npm run dev`The backend should be running at
http://localhost:8000
.Live Demo
The live backend demo is available https://bookapis.onrender.com/api/v1/books
API Endpoints
Book Endpoints
POST/api/v1/books/createBook
-Create Book
GET/api/v1/books
- Get All Books
DELETE/api/v1/books/:id
- delete BookProject Structure
bash
BackendAuthSocket/
├── db/ # Configuration files (DB, JWT)
├── controllers/ # Functions handling requests
├── models/ # Mongoose models (Book Data)
├── routes/ # API routes
└── app.js # Main server entry point