/rest-api-base

A guide for rest api authentication and authorization

Primary LanguageTypeScript

This repo is meant to demonstrate how authentication and authorization can be done in a rest api using jsonwebtoken.

You can read the full tutorial here

To get started,

Install all packages

npm clean-install

Generate the prisma client and sync the schema to the database

npx prisma generate
npx prisma migrate dev --name "init"

Run the server

npm run dev