express-server-jwt icon indicating copy to clipboard operation
express-server-jwt copied to clipboard

A simple express server that handles JWT authentication

Express Server JWT

A simple server with JWT authentication with the ability to create new users, and to authenticate the existing ones.


  • express
  • prisma
  • passport
  • jwt


  • /signin - POST (email, password)
  • /signup - POST (email, password)
  • /user - GET (protected)

Get Started:

Download the repo and install all dependencies:

git clone
cd express-server-jwt
npm install

Configure server environment variables:

cp .env.example .env

Generate Prisma Client

npx prisma generate

Run Prisma migration

npx prisma migrate

Run the server:

npm start