felipe-parra / api-auth-jwt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic API Auth with JWT

A basic API auth using JWT to validate users

Getting Started

This API help to login and register users.

Prerequisites

You need a database, works with MongoDB local or MongoDB Atlas, the URI must go in .env file and the secret.

PORT=<local_port>
DB_URI=<your_database_uri>
TOKEN_SECRET=<your_secret>

Installing

Run the following command for installation

npm install

Run API

Runs the API in the development mode.

npm run dev

Now the API is running on http://localhost:3000

About


Languages

Language:JavaScript 89.2%Language:HTML 7.5%Language:CSS 3.3%