This project is a RESTful API for an e-commerce application. It supports basic CRUD operations such as adding updating deleting and listing products.
1. Clone project
git clone https://github.com/berktugates/shopapp-api.git
2. Go to the project directory
cd shopapp-api
3. Install project dependencies
npm install
4. Run the project in developer mode
npm run dev
API Endpoints | Description |
---|---|
GET /api/products | Brings all products |
POST /api/products | Adds a new product |
GET /api/products/:id | Returns the relevant product |
PUT /api/products/:id | Updates the relevant product |
DELETE /api/products/:id | Deletes the relevant product |
API Endpoints | Description |
---|---|
GET /api/categories | Brings all categories |
POST /api/categories | Adds a new category |
GET /api/categories/:id | Returns the relevant category |
PUT /api/categories/:id | Updates the relevant category |
DELETE /api/categories/:id | Deletes the relevant category |
Technologies used in the project:
- Express
- Mongoose
- Joi
- Nodemon
- CORS
If you have any feedback, please contact us at berktugates@gmail.com.