https://github.com/mcodex/rocketseat-challenge1-nodejs
1st challenge from Rocketseat's bootcamp
https://github.com/mcodex/rocketseat-challenge1-nodejs
expressjs helmetjs
Last synced: 5 months ago
JSON representation
1st challenge from Rocketseat's bootcamp
- Host: GitHub
- URL: https://github.com/mcodex/rocketseat-challenge1-nodejs
- Owner: mCodex
- License: mit
- Created: 2020-01-28T22:53:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T22:23:24.000Z (about 3 years ago)
- Last Synced: 2025-07-23T17:48:10.220Z (6 months ago)
- Topics: expressjs, helmetjs
- Language: JavaScript
- Homepage: https://github.com/Rocketseat/bootcamp-gostack-desafio-01
- Size: 457 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 1st challenge from Rocketseat's bootcamp
## 📖 Introduction
The 1st challenge only requires an API which the user can does a simple CRUD. There isn't no DB, just a global array which is used as a database alike.
The instructions can be found [here](https://github.com/Rocketseat/bootcamp-gostack-desafio-01).
## 📚 Libraries:
* [ExpressJS](https://expressjs.com/)
* [HelmetJS](https://helmetjs.github.io/)
* [Airbnb's ESlint](https://www.npmjs.com/package/eslint-config-airbnb)
## ⚡️ API
The main entity is `project` the following methods are implemented:
**NOTE:** You can download the full Postman's collection [here](./docs/Challenge1-Rocketseat.postman_collection.json).
### Project
* #### Create
You can create a new one by doing:
`POST /project`
Body:
```
{
"id": 2,
"title": "Hello",
"tasks": []
}
```
* #### Update
You can update a project just by passing its id to:
`PUT /project/:id`
Body:
```
{
"title": "Another awesome title"
}
```
* #### Delete
You can delete a project just by passing its id to:
`DELETE /project/:id`
* #### GET
You can list all projects:
`GET /projects`
### Tasks
* #### Create
You can add a taks into a project by doing:
`POST /projects/:id/tasks`
Body:
```
{
"title": "Lagwagon"
}
```
---
Made with ❤️ by [mCodex](https://github.com/mcodex).