This repository is a template workspace with three main parts:
apps/web- Next.js frontendapps/services- Encore.ts backend servicesshared/*- Shared code and types for both frontend and backend
This root README is only a workspace index. Detailed guides are split by app:
- Frontend and gateway workflow:
apps/web/README.md - Backend services and Encore usage:
apps/services/README.md
To get started, follow the instructions in apps/services/README.md to run the initial Encore service, then follow apps/web/README.md to run the frontend and APISIX gateway. or use this quick start:
- Install dependencies:
pnpm install- Init Encore app:
cd apps/services
encore app init services --lang typescript- Enter via APISIX at
http://localhost:9080 - APISIX routes web traffic to Next.js (
localhost:3000) - APISIX routes
/api/*to Encore (localhost:4000) and rewrites to Encore paths
To start APISIX:
cd apps/router
docker compose up -dauto-starts
pnpm devstop APISIX:
cd apps/router
# docker compose down # Uncomment to stop APISIX when done
docker compose stop # Stops APISIX without removing containers, allowing for quick restartThen run web and services apps in development mode.