/backend-node-module

GoStack 11 Backend with Node.js Module Project

Primary LanguageJavaScript

⚙️ Backend with Node.js

A simple RestFull API made with Node.js to practice CRUD operations.

This project stores a list of projects in memory and provides an Express API to: list, create, update and delete projects;

⌨️ Installation and Execution

  • Clone this repo
> git clone https://github.com/prenato84/backend-node-module
  • Go inside the project's main folder
> cd backend-node-module
  • Install the dependencies
npm install
  • Run the project
npm dev

📑 API Description

  • GET /projects: lists all the projects stored in memory.

  • POST /projects: expects to receive an object with title and owner inside the request body. The created project is stored inside an object like: { id: "uuid", title: 'Node.js Project', owner: 'Owner Name'; The ID is an UUID - Universal Unique Identifier.

  • PUT /projects/:id: expects to receive an object with title and owner inside the request body and it changes the project info based on the id passed as a request param.

  • DELETE /projects/:id: deletes the project that corresponds to the id passed as a request param.

👨‍💻 Requirements

  • Javascript interpreter Node JS
  • Version control system Git

OBS: if you don't want to use Git, you can download the project's zip file directly from the Project's GitHub Page as shown below:

📝 License

This project is under the MIT license.


Developed with 💜 by Paulo Castro 👋