Eckhardt-D / nuxtess

A batteries-included Nuxt project to speed up development

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nuxtess

A starter for production Nuxt3 SaaS applications.

Getting started (local development)

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

Update app.config.ts with your app details

export default defineAppConfig({
  // Used in e.g. 2FA app name
  name: 'Your App Name'
})

Update necessary items in .env

AUTH_COOKIE_EXPIRY_SECONDS=
AUTH_COOKIE_NAME=
JWT_TOKEN_SECRET=

Start the database servers

docker compose up

Run the migrations

This will run all the existing migrations, which is required for things like auth etc.

npx prisma migrate deploy

Note on migrations

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>

About

A batteries-included Nuxt project to speed up development


Languages

Language:TypeScript 52.4%Language:Vue 46.6%Language:JavaScript 0.8%Language:CSS 0.2%