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

https://github.com/filipe1309/rb-rest-api


https://github.com/filipe1309/rb-rest-api

jest nodejs rest-api

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

#

RB Rest API :space_invader:





## 💬 About

This project was developed following Rodrigo Branas youtube playlist "[API REST](https://www.youtube.com/playlist?list=PLQCmSnNFVYnQ28Gd7SmWiM-dChqaWiy8i)".

## :computer: Technologies

- [Nodejs](https://nodejs.org/en/)
- [Docker](https://www.docker.com/)
- [Jest](https://jestjs.io/)

## :octocat: Setup

### Installation

```sh
# Clone this repo
git clone git@github.com:filipe1309/rb-rest-api.git

# Enter project folder
cd rb-rest-api
```

### 🏃 Runnning

```sh
docker-compose up -d
```

The app will run at: http://localhost:3000

#### API

##### Get All posts

`GET http://localhost:3000/posts`

##### Create a post

`POST http://localhost:3000/posts`

##### update a post

`PUT http://localhost:3000/posts/:id`

##### Delete a post

`DELETE http://localhost:3000/posts/:id`

### Tests

```sh
docker exec -t rest-api_blog_1 npm test
```

## About Me





---


Done with ♥ by Filipe Leuch Bonfim 🖖