ElysiaJS boilerplate with HTMX, Tailwind, Auth.js, Drizzle, CI. Deploy in one click to Railway or Vercel Edge Functions
Feature packed ElysiaJS boilerplate. Edge ready. Deploy with one click.
Taken inspiration from https://github.com/ethanniser/the-beth-stack.
🚀 Option 1: Clone and deploy
To Railway (deployed with Docker)
To Vercel Edge Functions (see the Railway template for required environment variables, as well as RUNTIME=edge
)
📋 Option 2: Clone and run locally
main
branch only` if you are interested in other branches / feature sets)with bun
bun install
bun run dev
or with Docker
docker-compose --file docker/dev/docker-compose.yml up
.dockerignore
docker/
- Dockerfile and docker-compose.yml for development and production.github/workflows/ci.yml
- type-checking and linting (hence these errors are ignored in next.config.mjs
)public/[email protected]
types/htmx.d.ts
- typed HTMX attributes for intellisense and autocompletionsrc/app/api/auth/index.ts
src/app/components/auth.tsx
src/db/schemas/auth.ts
— store auth data (users, accounts, sessions, verification tokens) in databasesrc/hooks/isAuthenticated.ts
src/lib/auth.ts
tsconfig.json
- configured for maximum type-safetytypes/reset.d.ts
- using ts-reset to increase type-safetyapi/index.tsx
scripts/transform-paths.ts
- transforms all relative imports to absolute imports inside the src/ directoryvercel.json
.vscode/extensions.json
- recommended workspace extensions