Skip to content

KlimentinaIvanova/REST-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REST-API Node.js

This REST API Node.js project provides basic functionality for managing products. It is built with Node.js and uses the following dependencies: cors, express, lodash, and uuid.

The API supports the following HTTP methods for managing products:

GET: retrieves all products or a specific product by ID POST: creates a new product PUT: updates an existing product by ID DELETE: deletes a product by ID The project uses Express to set up the server and handle incoming requests. CORS is used to allow cross-origin requests. Lodash is used for data manipulation, and UUID is used to generate unique IDs for new products.

The API can be tested using a tool like Insomnia, which can send HTTP requests and receive responses. The project includes a set of Insomnia requests that can be used to test the API. These requests include creating, retrieving, updating, and deleting products.

In summary, this project provides a simple REST API for managing products and demonstrates the use of popular Node.js libraries for server-side development.

To start the project:

Clone the repository by running git clone https://github.com/KlimentinaIvanova/REST-API.git in your terminal. Navigate to the project directory by running cd REST-API in your terminal. Install the dependencies by running npm install in your terminal. Start the server by running npm start in your terminal. The server will be running on port 5000, so you can access it by opening your browser and navigating to http://localhost:5000.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published