djgould / jwt-bff-auth-example

Proof of concept for JWT Auth using BFF (Backend for Frontend via NextJS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JWT BFF (Backend for Frontend) Auth

Getting Started

Prerequisites

  • MySQL installed (brew install mysql or run in Docker container)
  • Serverless Framework configured (follow Getting Started)

Installation

Install frontend dependencies:

cd frontend && npm install

Install backend dependencies:

cd backend && npm install

Running in development

Backend: cd backend && npm run offline runs the serverless framework in offline mode (locally)

Frontend: cd frontend && npm run dev runs next in dev mode

About

Proof of concept for JWT Auth using BFF (Backend for Frontend via NextJS)


Languages

Language:TypeScript 69.9%Language:JavaScript 30.1%