https://github.com/dxtaner/reactjs-nodejs-book-application
react node js book app
https://github.com/dxtaner/reactjs-nodejs-book-application
book-app books-app bookstore reactjs-nodejs
Last synced: 12 months ago
JSON representation
react node js book app
- Host: GitHub
- URL: https://github.com/dxtaner/reactjs-nodejs-book-application
- Owner: dxtaner
- Created: 2024-01-03T03:09:28.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T15:18:29.000Z (about 2 years ago)
- Last Synced: 2025-05-30T19:35:36.619Z (about 1 year ago)
- Topics: book-app, books-app, bookstore, reactjs-nodejs
- Language: JavaScript
- Homepage: https://react-nodejs-book-application.vercel.app
- Size: 4.04 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Books App Backend
=================
This is the backend for a simple Books App, built using Node.js, Express, and MongoDB.
# Books App
A simple description of your Books App goes here.
## Screenshots
### About Page

*Description: About page added 2 days ago.*
### Add Book

*Description: Add book functionality added 2 days ago.*
### Delete Book

*Description: Delete book functionality added yesterday.*
### Home Page

*Description: Home page added yesterday.*
### List Book

*Description: List book functionality added yesterday.*
### List Book 2

*Description: Another view of the list book functionality added yesterday.*
### Update Book

*Description: [Add your description here]*
Getting Started
---------------
### Prerequisites
Before you begin, ensure you have the following installed:
* Node.js: [Download Node.js](https://nodejs.org/)
* MongoDB: [Install MongoDB](https://docs.mongodb.com/manual/installation/)
### Installation
1. Clone the repository:
`git clone https://github.com/dxtaner/books-app-backend.git`
`cd books-app-backend`
2. Install dependencies:
`npm install`
3. Set up environment variables:
`PORT=3033 MONGODB_URI=mongodb+srv://your-username:your-password@cluster0.guofsiq.mongodb.net/books-app`
Replace `your-username` and `your-password` with your MongoDB Atlas credentials.
Usage
-----
1. Start the server:
`npm start`
The server will run on `http://localhost:3033` or the port specified in the `.env` file.
2. Test the API:
Visit `http://localhost:3033` in your browser or use tools like [Postman](https://www.postman.com/) to test API endpoints.
API Endpoints
-------------
* `GET /`: Returns a welcome message.
* `GET /books`: Returns a list of all books.
* `GET /books/:id`: Returns details of a specific book.
* `POST /books`: Creates a new book.
* `PUT /books/:id`: Updates details of a specific book.
* `DELETE /books/:id`: Deletes a specific book.
Contributing
------------
Feel free to contribute to this project by opening issues or submitting pull requests.
License
-------
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.