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
- Host: GitHub
- URL: https://github.com/filipe1309/rb-rest-api
- Owner: filipe1309
- Created: 2021-03-29T23:20:53.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-31T01:37:52.000Z (over 5 years ago)
- Last Synced: 2025-10-06T18:52:41.374Z (9 months ago)
- Topics: jest, nodejs, rest-api
- Language: JavaScript
- Homepage:
- Size: 201 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 🖖