Skip to content

A rest api build with internal node js modules, only, to manage projects and tasks. Made with lots of love!

License

Notifications You must be signed in to change notification settings

gftf2011/nodejs-fs-projects-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imagem da Logo do Framework node.js

Node Project Management API

GitHub top language GitHub language count GitHub issues Codacy grade GitHub last commit GitHub forks Github stars License Repository size

Purpose   |    Technologies   |    Run the application   |    Application routes   |    License

😃 Purpose

This project was built with intention to explore node.js internal modules, which means no Express. So, to fulfill this purpose, the most known modules were used! Among them are the 'fs' - (File System) module from node.js that is used to store our data, in the project it's not used any database management system like Postgres, Oracle OR MongoDB!

🚀 Technologies

🚗 Run the application

  1. node.js installation https://nodejs.org/en/download/

  2. YARN installation https://classic.yarnpkg.com/en/docs/install/

  3. Clone project in your PC 💻

  4. Open the project with a text editor and run 'yarn' to download the dependencies

  5. Postman download https://www.getpostman.com/downloads/

  6. Run 'yarn dev' to use the endpoints

✈️ Application routes

  • GET /projects : Endpoint responsible to read all projects
  • GET /projects?id=number: Endpoint responsible to retrieve a specific project given its id

    number : Represents the id passed in the query string

  • POST /projects : Endpoint responsible to create a project receiving in the request body the project's title

    Request body example below
{
  "title": "Project 1"
}
  • POST /projects/tasks?id=number: Endpoint responsible to create a task to a specific project given its id, also its passed through the request body the task for the project

    number : Represents the id passed in the query string

    Request body example below
{
  "task": "task 1"
}
  • PUT /projects?id=number: Endpoint responsible to update a specific project's title given its id, also its passed through the request body the new project's title

    number : Represents the id passed in the query string

    Request body example below
{
  "title": "Project 2"
}
  • DELETE /projects?id=number: Endpoint responsible to remove a specific project given its id.
    number : Represents the id passed in the query string

📝 License

This project is under the MIT license. See the LICENSE for more information.


Made with ♥ by Gabriel Ferrari Tarallo Ferraz 👋 Get in touch!

About

A rest api build with internal node js modules, only, to manage projects and tasks. Made with lots of love!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published