https://github.com/rcrdk/ignite-tasks-nodejs-api
A simple tasks CRUD for practicing the basics of Node.js.
https://github.com/rcrdk/ignite-tasks-nodejs-api
insomina nodejs
Last synced: 3 months ago
JSON representation
A simple tasks CRUD for practicing the basics of Node.js.
- Host: GitHub
- URL: https://github.com/rcrdk/ignite-tasks-nodejs-api
- Owner: rcrdk
- Created: 2024-08-06T14:06:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-29T13:24:48.000Z (almost 2 years ago)
- Last Synced: 2025-03-28T23:45:55.551Z (over 1 year ago)
- Topics: insomina, nodejs
- Language: JavaScript
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📋 Ignite Tasks
I developed this project as a challenge of my latest studies on Node lessons at [Rocketseat](https://www.rocketseat.com.br).
## 🚀 Techs and Tools
- [Node.js v18](https://nodejs.org/)
- [CSV Parser](https://csv.js.org/)
- [HTTPie](https://httpie.io/)
- [Insomnia](https://insomnia.rest/)
## 💻 Project
This project was developed to practice the fundamentals of Node.js by creating a CRUD of tasks using a custom routing system and streams for import tasks from a CSV file and as a middleware to treat JSON between requests and respoinses. All tasks created and imported are stored into a JSON file.
## 🔗 Routes
[](https://insomnia.rest/run/?label=Ignite%20Node.js%3A%20Tasks%0A&uri=https://raw.githubusercontent.com/rcrdk/ignite-tasks-nodejs-api/main/insomnia.json)
```shell
npm i
npm run dev
npm run import
```
| Method | Route | Params/Body |
| ----------- | -------------------- | -------------------|
| ``GET`` | /tasks/ | search |
| ``POST`` | /tasks/ | title, description |
| ``PUT`` | /tasks/:id | title, description |
| ``DELETE`` | /tasks/:id | - |
| ``PATCH`` | /tasks/:id/complete | - |