Code Monkey home page Code Monkey logo

ecommerce-backend's Introduction

E-Commerce Application:

This is a simple e-commerce application that allows users to view products, add products to cart, and checkout. The admin can manage products, users, and orders.

The application is built using the following technologies:

  1. Frontend: React, Axios, React-Router-Dom V6, Bootstrap, Redux.

  2. Backend: Node.js, Express.js, MongoDB, Mongoose, JWT, Bcrypt, Multer, Nodemailer, Nodemon, Dotenv, Morgan, Cors, cookie-parser.

  3. Tools: Postman, VS Code, Git, GitHub, Netlify, Render, Vite.

Steps:

Backend:

  1. Create an empty directory and open it in VS Code.
  2. Open the terminal and run the following command to create a package.json file:
npm init
  1. create an entry point file (index.js).
  2. Configure the package.json file. Add the following code:
"scripts": {
    "start": "node index.js"
  }
  1. Create a readme.md file and add the project description.
  2. Create an empty repository in GitHub.Com. Copy the repository URL.
  3. Initialize the git repository in the project directory:
git init
  1. Add the remote repository URL:
git remote add origin <repository-url>
  1. Create a .gitignore file and add the following code:
node_modules
package-lock.json
DS_Store
.env
  1. Rename the default branch from master to main:
git branch -m main
  1. Add the changes to the staging area:
git add .
  1. Commit the changes:
git commit -m "basic backend application setup"
  1. Push the changes to the remote repository:
git push -u origin main

ecommerce-backend's People

Contributors

githubscientist 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.