Authula Playground
This repository is a playground that demonstrates how to integrate Authula into a full-stack application. It includes a Next.js (SSR) + React Router (SPA) frontends and a Go backend, showcasing how to implement authentication and authorization using Authula.
- Frontend: Next.js + React Router
- Backend: Go (Golang), Echo (for this example)
- Library: Authula
- Clone the repository
- Docker Compose
- Ensure Docker and Docker Compose are installed.
- Copy
docker-compose.env.exampletodocker-compose.env. - Update environment variables in
docker-compose.envas needed. - Start services:
docker compose down -v && docker compose --env-file=docker-compose.env up -d
- Backend Setup
- Copy
backend/.env.exampletobackend/.env. - Update environment variables in
backend/.env. - Install dependencies:
go mod tidy - Start the backend:
go run main.go
- Copy
- Frontend Setup
- Install dependencies:
pnpm install - Copy
frontend/.env.local.exampletofrontend/.env.local. - Update environment variables in
frontend/.env.local. - Start the frontend:
pnpm dev
- Install dependencies:
This repository will be updated as Authula evolves, with additional examples demonstrating integration in various scenarios.
For comprehensive documentation and usage instructions, visit the Authula Docs.
