A starter for production Nuxt3 SaaS applications.
The docker inclusion is just a nice to have and not a necessity. It's specifically to ease use of Redis and MySQL in local development. In a production environment you should use a production DATABASE_URL in your .env.
pnpm install
export default defineAppConfig({
// Used in e.g. 2FA app name
name: 'Your App Name'
})
AUTH_COOKIE_EXPIRY_SECONDS=
AUTH_COOKIE_NAME=
JWT_TOKEN_SECRET=
docker compose up
This will run all the existing migrations, which is required for things like auth etc.
npx prisma migrate deploy
You can always create your own migrations, but the existing models need to remain as is (you can add properties but not remove) for auth to work
npx prisma migrate dev --name <migration_name>