Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeniya14/shopcart-backend
This repository contains the server-side code for the ShopCart project. The server is built using Express.js and establishes connections to MongoDB.
https://github.com/jeniya14/shopcart-backend
backend cors-middleware express-js mongodb node-js server
Last synced: 1 day ago
JSON representation
This repository contains the server-side code for the ShopCart project. The server is built using Express.js and establishes connections to MongoDB.
- Host: GitHub
- URL: https://github.com/jeniya14/shopcart-backend
- Owner: Jeniya14
- Created: 2023-04-23T10:58:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-11T10:42:16.000Z (12 months ago)
- Last Synced: 2023-11-11T11:28:04.524Z (12 months ago)
- Topics: backend, cors-middleware, express-js, mongodb, node-js, server
- Language: JavaScript
- Homepage:
- Size: 2.22 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ShopCart Server
This repository contains the server-side code for the ShopCart project. The server is built using Express.js and establishes connections to MongoDB.
## Table of Contents
1. [Technologies Used](#technologies-used)
2. [Connection to MongoDB](#connection-to-mongodb)
3. [Main Server](#main-server)
4. [Routes](#routes)
5. [Frontend File](#frontend-file)## Technologies Used
- **Server:**
- Express.js
- MongoDB
- Cors (Cross-Origin Resource Sharing)## Connection to MongoDB
The `Controller` directory contains a `connection.js` file that establishes a connection to the MongoDB database for the ShopCart project.
## Main Server
The `server.js` file is the main server script. It sets up an Express.js server, establishes middleware, and listens for incoming requests.
## Routes
The `route` directory contains separate files for different routes:
- `user.js`: Manages user-related operations.
- `product.js`: Handles product-related operations.
- `cart.js`: Manages shopping cart functionality.
- `order.js`: Deals with order-related operations.Each route file encapsulates the logic for handling requests related to its respective domain.
## Technologies Used
- **Server:**
- Express.js
- MongoDB
- Cors (Cross-Origin Resource Sharing)## Frontend File
The Frontend file is hosted separately on GitHub. You can find it [https://github.com/Jeniya14/Shopcart-fullstack-project](https://github.com/Jeniya14/Shopcart-fullstack-project).
Feel free to explore the code and contribute to the project!