The api used for auth in Election Dapp built with Node.js
Checkout to the
sepolia-testnetbranch to browse the deployed api code.
- git
- You'll know you did it right if you can run
git --versionand you see a response likegit version x.x.x
- You'll know you did it right if you can run
- Nodejs
- You'll know you've installed nodejs right if you can run:
node --versionand get an ouput like:vx.x.x
- You'll know you've installed nodejs right if you can run:
$ git clone https://github.com/rabin245/election_app_api.git
$ cd election_app_api
$ npm install
Open .env.example then rename it to .env and set the evironment variables for the api.
- A secret key for
jsonwebtoken - The
MongoDBconnection uri - Outlook email and password for
nodemailerpackage
$ npm run dev
$ npm start