The Rest API that registers shared books, reviews of those who have read it, and location of points where you can find books that are part of this social network.
About the project | Installation | Routes | Licence
An API Rest made with Node.js,Express and MongoDB to register books, users and the database will grow with the insertion of records from several users in various geographic locations. With a simple click, the app will return points of releasing books closest to you within a radius of 300 km.
First of all, make sure that you have Node.js installed on your machine. Choose a package manager (NPM or Yarn). You will need to create a mongoDB database too. Follow this link to create one: (https://www.mongodb.com/try/download/community).
Now, to install the dependencies
npm install
To start the application with nodemon
npm run dev
To start the application with node
npm start
You will need a API Client,you can use:
- Postman
- Insomnia
- Thunder Client (extension for vsCode)
Every URL starting with ‘/api’ . Example:
http://localhost:3000/api/books
To search by Id, update or delete
http://localhost:3000/api/books/:id
To filter results by query parameters
http://localhost:3000/api/nearby/?lng=-80&lat=2
{
"name": "Taz - Temporary Autonomous Zone",
"auth": "Hakim Bey"
}
Mozilla Public License Version 2 LICENSE for more details.
Made with ♥ by Gabriel 👋 See my linkedin!