E-Shopping Portal or E-Commerce, also known as electronic commerce or internet commerce, refers to the buying and selling of goods or services using the internet, and the transfer of money and data to execute these transactions. The aim of our project is to provide the advantages of online shopping to customers of a real shop. It helps buying the products in the shop anywhere through the internet. Thus, the customer will get the service of online shopping and home delivery from his favourite shop. This system can be implemented to any shop in the locality or to multinational branded shops having retail outlet chains.
git clone https://github.com/memukherjee/e-commerce-app.git
cd e-commerce-app
-
cd backend
To run this project, you need to have java & maven installed in your system. If you don't have java installed, you can download it from given links below
-
Download and install mongodb from here or you can use mongodb atlas to create a cloud database.
-
Create a file named
env.properties
in thebackend
directory and add the following variables to it.MONGODB_URI
= Database URIMONGODB_DB
= Database name- Uncomment the
spring.config.import=file:env.properties
line inbackend/src/main/resources/application.properties
file.
-
mvn spring-boot:run
The backend server will start running on port 8080.
-
cd frontend
To run this project, you need to have nodejs installed in your system. If you don't have nodejs installed, you can download it from here.
-
Create a file named
.env
in thefrontend
directory and add the following variables to it.REACT_APP_API
= http://localhost:8080/apiREACT_APP_RAZORPAY_KEY
= Razorpay keyREACT_APP_GEOAPIFY_API_KEY
= Geoapify api key
-
npm install # Only for the first time. If facing any issues, run the command with --force flag. npm start # To run the project
The frontend server will start running on port 3000.