Skip to content

Vinod-Mane3021/ecommerce_app_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ecommerce_app_backend - Backend

The backend of the ecommerce app is built using Node.js and Express.js, with MongoDB as the database.

Features

  • CRUD Operations: Perform Create, Read, Update, and Delete operations on tasks.
  • User Authentication: Enable personalized task management by implementing user registration, login, and logout functionalities.
  • MongoDB Database: Utilize MongoDB for storing task data, providing flexibility and scalability.
  • Deployment: Deploy the backend on platforms like Heroku for easy accessibility.

Setup

  1. Clone the Repository:
$ git clone https://github.com/Vinod-Mane3021/ecommerce_app_backend.git
$ cd ecommerce_app_backend
  1. Install Dependencies:
$ npm install
  1. Environment Variables:
# Port on which the server will run
PORT=3000
# Url for connecting to the MongoDB database
MONGODB_URL=your-mongodb-url
# cors specifies who can access the resources on your server
CORS_ORIGIN=*   # Allow requests from any origin
  1. Start the app
npm start

Available commands

Running commands with npm npm run [command]

command description
start Starts a development instance of the app

Tech stack

  • Node.js – JavaScript runtime for server-side development.

  • Express.js – Web application framework for Node.js.

  • MongoDB – NoSQL database for storing task data.

  • Mongoose – ODM (Object Data Modeling) library for MongoDB and Node.js.

  • Typescript – Adds static types to improved code clarity.

Project Folder Structure

todo-app-backend/
│
├── public/
│   └── assets/
│
├── src/
│   ├── config/            # Configuration files (e.g., database connection)
│   ├── controllers/       # Request handlers for each route
│   ├── middlewares/       # Custom middleware functions
│   ├── models/            # Mongoose models for data structures
│   ├── routes/            # Express.js route definitions
│   ├── services/          # Business logic or services
│   ├── utils/             # Utility or helper functions
│   ├── constants/         # Utility or helper functions
│   ├── app.ts             # Express.js application setup
│   └── index.ts           # Entry point for the server
│
├── .env                   # Environment variables file
├── .gitignore             # Git ignore file
├── package.json           # Node.js package configuration
├── package-lock.json      # other Node.js configuration
├── tsconfig.json          # TypeScript configuration file
└── README.md              # Readme file

About

this back-end for e commerce application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published