jwt-bff-auth-example
jwt-bff-auth-example copied to clipboard
Proof of concept for JWT Auth using BFF (Backend for Frontend via NextJS)
JWT BFF (Backend for Frontend) Auth
Getting Started
Prerequisites
- MySQL installed (
brew install mysqlor 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