The api used for auth in Election Dapp built with Node.js
Checkout to the
sepolia-testnet
branch to browse the deployed api code.
- git
- You'll know you did it right if you can run
git --version
and 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 --version
and 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
MongoDB
connection uri - Outlook email and password for
nodemailer
package
$ npm run dev
$ npm start