/hapi-jwt-auth-api

Auth API that I created using HapiJS and JWT

Primary LanguageJavaScriptMIT LicenseMIT

HapiJS JWT Auth API

Auth API that I created using HapiJS and JWT

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

Run this command before change/add env

  cp .env.example .env

READ THIS

Run Locally

Clone the project

  git clone https://link-to-project

Go to the project directory

  cd my-project

Install dependencies

  npm install

Start the server

  npm run start

And go to http://localhost:3000/documentation to see what you can do

Running Tests

To run tests, run the following command

  npm run test

NOTE: setup environment before testing

API Reference

go to http://localhost:3000/documentation

Deploying to Heroku

  heroku create
  git push heroku main
  heroku open

Alternatively, you can deploy your own copy of the app using this button:

Deploy to Heroku

References

License

MIT