/JWT-Express

A basic REST API with Express that implements the JWT concept

Primary LanguageJavaScript

Setup

  1. Clone the repository
    git clone https://github.com/CoreVisional/JWT-Express.git

  2. Change directory into the project
    cd JWT-Express

  3. Run the command below to install the depedencies
    npm install

  4. Run the copy to have your own .env file
    cp .env.example .env

  5. Create your database in MongoDB and connect to your application.

  6. In your .env file, specify your JWT_SECRET, NODE_ENV, and optionally your desired port number to start the server\

  7. Run the application
    npm start