The tech stack used in the projects are as follows:
- Metamask polygon Mumbai chain. Note: If you do not have metamask the application wont work properly.
- TypeScript
- Node JS
- Express
- Next JS
- Nodemon
Please ensure you have the aboeve packages installed, frameworks installed.
How to run the application?
First clone the repository.
git clone https://github.com/asifrahaman13/blockchain-e-commerce
Next you need to run the backend application.
cd backend/
Install the necessary dependencies.
yarn install
Next you need to enter your email address, mongodb uri and two factor authentication password for your application in the .env file.
- For the gmail go to the manage settings section of your gmail account. On the left side you will see the security tab. click on it. Now click on the "2-Step Verification" under the "How you sign in to Google". Scroll down to find the "App passwords" function. Next click on it and enter the required details to get 16 digit app password. Copy it. https://myaccount.google.com/security
Now run the application
nodemon index.js
Next you need to run the front end application.Open another terminal.
cd frontend/
Install the necessary dependencies.
yarn install
Run the next js application
yarn run dev