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:
-
Frontend: React, Axios, React-Router-Dom V6, Bootstrap, Redux.
-
Backend: Node.js, Express.js, MongoDB, Mongoose, JWT, Bcrypt, Multer, Nodemailer, Nodemon, Dotenv, Morgan, Cors, cookie-parser.
-
Tools: Postman, VS Code, Git, GitHub, Netlify, Render, Vite.
Steps:
Backend:
- Create an empty directory and open it in VS Code.
- Open the terminal and run the following command to create a package.json file:
npm init
- create an entry point file (index.js).
- Configure the package.json file. Add the following code:
"scripts": {
"start": "node index.js"
}
- Create a readme.md file and add the project description.
- Create an empty repository in GitHub.Com. Copy the repository URL.
- Initialize the git repository in the project directory:
git init
- Add the remote repository URL:
git remote add origin <repository-url>
- Create a .gitignore file and add the following code:
node_modules
package-lock.json
DS_Store
.env
- Rename the default branch from master to main:
git branch -m main
- Add the changes to the staging area:
git add .
- Commit the changes:
git commit -m "basic backend application setup"
- Push the changes to the remote repository:
git push -u origin main