/express-prisma-jwt-auth

Basic Express Auth setup with JWT and Prisma (Practice App).

Primary LanguageJavaScript

Express Prisma JWT Auth

A simple authentication API built with Node.js, Express, Prisma, and JWT.

Technologies

Setup

  1. Install dependencies

    npm install
  2. Create a PostgreSQL database

  3. Create a .env file in the root directory and add the environment variables listed in the .env.example file

  4. Run the migrations

    npx prisma migrate dev
  5. Run the server

    npm run dev