Skip to content

shubhambattoo/shopping-cart

Repository files navigation

👟 Sneakers Store App using React and Express

MERN Shopping cart created with React, NodeJS, MongoDB

screen

Prerequisites

  • Node > 12 or LTS
  • npm or yarn
  • MongoDB installed on local machine

Getting Started

Clone or Download

git clone https://github.com/shubhambattoo/shopping-cart.git
cd shopping-cart

Run npm install to install all the dependencies

Creating a .env file

PORT=3000
DATABASE_HOST=mongodb://yoururl/
DATABASE_NAME=yourDBNAME
NODE_ENV=development

To import the Mock Products Data to MongoDB

cd /data
mongoimport --db [yourDBName] --collection products --file products.json --jsonArray

To start up the backend services run, npm start this will start the backend service on PORT 3000

Client Side

Development

cd client
npm install
npm start

This should start up the React application on PORT 3001 and you open http://localhost:3001

Contributing

Contributions, issues and feature requests are welcome! Feel free to check issues page.

View CONTRIBUTING.md to learn about the style guide, folder structure, scripts, and how to contribute.

Contributors


Shubham Battoo

💻📖 🚇

Manoj Barman

💻

Author

Shubham Battoo

Show your support

Give a ⭐️ if this project helped you!