This project is a Product Management API built using Node.js and Express.js. It provides endpoints for creating, retrieving, updating, and deleting products in a system.
- Node.js β :contentReference[oaicite:3]{index=3}β:contentReference[oaicite:4]{index=4}
- Express.js β :contentReference[oaicite:5]{index=5}β:contentReference[oaicite:6]{index=6}
- JavaScript (ES6+) β :contentReference[oaicite:7]{index=7}β:contentReference[oaicite:8]{index=8}
- CRUD Operations: :contentReference[oaicite:9]{index=9}β:contentReference[oaicite:10]{index=10}
- RESTful Endpoints: :contentReference[oaicite:11]{index=11}β:contentReference[oaicite:12]{index=12}
- Middleware Integration: :contentReference[oaicite:13]{index=13}β:contentReference[oaicite:14]{index=14}
-
Clone this repository:
git clone https://github.com/RenanDevWeb/apiProdutos.git
Navigate to the project directory:
cd apiProdutos Navigate to the backend directory:
cd backend Install the dependencies:
bash
npm install Start the server:
npm start Access the API:
The API will be running at http://localhost:3000. Use tools like Postman or cURL to interact with the endpoints.
π API Endpoints GET /products: Retrieve all products.β
GET /products/:id: Retrieve a specific product by ID.β GitHub +1 GitHub +1
POST /products: Create a new product.β
PUT /products/:id: Update an existing product by ID.β
DELETE /products/:id: Delete a product by ID.β
π License This project is open-source and available under the MIT License. Feel free to use and modify it for your learning or personal projects.β