- Clone the repository
$ git clone https://github.com/Sathiyanarayanan-M/express-authentication.git
- Install NPM packages
$ npm install
- Create a
.env
file and enter followingMONGODB_URI = Your mongodb connection url PORT = Port number SECRET_KEY = access token secret key EXPIRES_IN = access token expiration time REFRESH_SECRET_KEY = Refresh token secret key REFRESH_LIFE = refresh token expiration time
- Run the
app.js
file$ node app