Code Monkey home page Code Monkey logo

shopcart-backend's Introduction

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
  2. Connection to MongoDB
  3. Main Server
  4. Routes
  5. 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.

Feel free to explore the code and contribute to the project!

shopcart-backend's People

Contributors

jeniya14 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.