An open API service indexing awesome lists of open source software.

https://github.com/mickaelandrieu/bookstore-node-rest-api

A simple but functional REST API to manage a Book Store using Node.js and Express.js (for educational purposes)
https://github.com/mickaelandrieu/bookstore-node-rest-api

Last synced: 3 months ago
JSON representation

A simple but functional REST API to manage a Book Store using Node.js and Express.js (for educational purposes)

Awesome Lists containing this project

README

          

# Book Store Node.js (Express.js) REST API

## Installation

```
git clone https://github.com/mickaelandrieu/bookstore-node-rest-api.git
cd bookstore-node-rest-api
npm i
```

## Endpoints

### Books

* `/books`
* `/books/`

### Users

* `/users`
* `/users/`

### Book Store management

* `/borrow//`: borrow a book from the book store as an user
* `/bring-back//`: bring back a book to the book store as an user

## Deploy on Heroku

Create [an account on Heroku](https://signup.heroku.com/) (Free/Hobby tiers is enough) and install [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli).

Then, execute the following instruction in the `bookstore-node-rest-api` folder:

```
heroku login
heroku create
git push heroku master
```

And "voila", the REST API is deployed and ready to be tested.

This project is licensed under the [MIT license](https://opensource.org/licenses/MIT).