To run this app locally you must have node.js , mongodb installed on your pc.
You must use chrome browser and create an account on metamask , sepolia testnet - https://metamask.io/download/ (installation link)
If you do not want to use mongodb locally , you can also use MongoDB atlas to run the project on cloud.
If not then you can also use Docker to run this project , but for that you must have Docker Desktop installed on your pc.
In addition to this if you want to test the webhooks , install ngrok to test locally , or deploy it to render.
Also to setup the app locally - use command git clone url locally and setup the .env file by taking reference of .env.example (dummy env) file in codebase.
You can find the links to do the following process below-
- https://dashboard.ngrok.com/get-started/setup/windows - NGROK
- https://nodejs.org/en/download/prebuilt-installer/current- Node.js
- https://www.mongodb.com/docs/manual/installation/- MongoDB
- https://www.mongodb.com/docs/atlas/getting-started/- Atlas setup
- https://docs.docker.com/desktop/install/windows-install/ -docker desktop setup
- https://www.freecodecamp.org/news/how-to-deploy-nodejs-application-with-render/ - reder deployment
- create a new project on alchemy and generate api keys - https://docs.alchemy.com/docs/alchemy-quickstart-guide
- webhook setup on alchemy -https://docs.alchemy.com/docs/how-to-get-started-with-custom-webhooks-in-3-minutes While creating webhooks , make sure to use sepolia testnet and create it using address activity tab
- To setup the telegram bot , you can use the following links-https://www.siteguarding.com/en/how-to-get-telegram-bot-api-token
- Get the chat id - https://www.alphr.com/find-chat-id-telegram/
use the following commands in your terminal and run docker desktop simultaneously
- docker build -t your_dockerhub_username/nodejs-image-demo .
- docker images
- docker run --name nodejs-image-demo -p 4000:4000 -d your_dockerhub_username/nodejs-image-demo
- docker ps
- docker logs container id
- cd into the directory
- open terminal
- npm install
- node server.js
https://gist.github.com/piyushgarg-dev/7c4016b12301552b628bbac21a11e6ab (follow this link)