-
CrediBuy is an e-commerce web application designed to streamline the online product purchase process. It is deployed on an Amazon EC2 instance sitting inside Virtual Private Cloud. The backend is deployed on the private subnet, and the front end is on the public subnet.
-
Here sellers can list various products for sale, and users can buy the selected products. Users can also search for their desired products directly. They can add products to a cart, change the quantity and choose a payment method, and cancel an order after placing it if they have changed their mind. Users will get notified after successful order placement.
-
Admins can see the list of products listed for sale, delete or add new products, update product details, and see the list of orders placed on CrediBuy. Moreover, sellers can also reject orders for a specific reason, and the user will get notified via email about the cancelation.
Create .env
file at the root level and create an environment variable. This file will look like this:
JWT_SECRET=<ENTER JWT SECRET>
REGION=<AWS REGION>
ACCESSKEYID=<AWS ACCESSKEY ID>
SECRETKEY=<AWS SECRET KEY>
SESSIONTOCKEN=<AWS SECRET TOCKEN>
- Node and npm is the primary requirement. Run the following command to check if node and npm is available in your system:
node -v
npm -v
- Git cli: Download Git command line interface using this link. run the following command:
git -v
After Installing Git,
The first step is to clone the repo in your machine using the below command.
Next, Change the directory to the frontend side of the project using:
cd .\CrediBuy\frontend
Next step is, run the below command to instal all the packages and dependencies that is required to run the Assignment.
npm install
You are all set and now just run the client side using following command.
npm start
Now, To run the server side, open the cmd with the path of the project's repo.
Next, Change the directory to the backend side of the project using:
cd .\CrediBuy\backend
Next step is, run the below command to instal all the packages and dependencies that is required to run the Assignment.
npm install
You are all set and now just run the server side using following command.
npm start
Both theclient and server are now running.