Mladi Pirati Beacon

Next.js

Template for web apps with auth and a PostgreSQL database.

Placeholder

This template is not published yet. The repository link, structure and instructions below are placeholders until it is published, which will be soon.

Use this template for web apps, meaning anything with logins, forms or dynamic data.

What's included

  • Next.js (App Router) with strict TypeScript
  • PostgreSQL + Drizzle ORM, with migrations
  • NextAuth, preconfigured for Keycloak (see Authentication)
  • Zod, including validation of environment variables
  • Tailwind CSS
  • ESLint + Prettier

Project structure

auth.ts
env.ts
drizzle.config.ts
next.config.ts
.env.example
package.json

Getting started

git clone https://github.com/mladi-pirati/template-nextjs my-project
cd my-project
bun install
cp .env.example .env
# start a local PostgreSQL instance, then:
bun db:migrate
bun dev

Conventions

Coming soon.

Deploying

Web apps are deployed on Dokploy. See Dokploy.

On this page