Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ewertoncodes/backend
simple api for the storage of projects. applied all the main concepts of nodejs and express
https://github.com/ewertoncodes/backend
Last synced: about 2 months ago
JSON representation
simple api for the storage of projects. applied all the main concepts of nodejs and express
- Host: GitHub
- URL: https://github.com/ewertoncodes/backend
- Owner: ewertoncodes
- Created: 2020-05-01T02:48:02.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T15:45:22.000Z (about 2 years ago)
- Last Synced: 2023-08-07T11:04:41.478Z (over 1 year ago)
- Language: JavaScript
- Size: 139 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
About the project |
Goals |
Installation |
Licence## :rocket: About the project
A application to storage projects using [Express](https://expressjs.com/pt-br/).
## :ballot_box_with_check: Goals
Apply all the main concepts of NodeJS and Express. How to use global/local middlewares, how to do a CRUD (Create, Read, Update, Delete) and learn the behavior of the requests and responses.
## :checkered_flag: Installation
`yarn install`To start the application:
`yarn dev`
### Routes
- `POST /projects`: This route receives the id and title in the body of the request. Creating a project like this format: `{ title: 'NewProject', owner: 'Name' }`;
- `GET /projects`: This route list all the projects storaged
- `PUT /projects/:id`: This route update a project, receiving the `id` as a route param and the `title` in the request body.
- `DELETE /projects/:id`: This route delete a project, receiving the `id` of the specific project as a route param.
## :memo: Licence
MIT Licence. See the file [LICENSE](LICENSE.md) for more details.
---