frederikheld / usenuxt-free

From https://www.reddit.com/r/vuejs/comments/192cgsh/introducing_usenuxt/

Home Page:https://demo.usenuxt.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UseNuxt Starter

Setup

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

Copy .env and update the values to match your environment (especially the NUXT_DATABASE_URL variable)

cp .env.example .env

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

# bun
bun run dev

Changes to the database schema can be pushed directly to dev database

# npm
npm run db:push

# pnpm
pnpm run db:push

# yarn
yarn run db:push

# bun
bun run db:push

To commit the schema changes for them to be applied automatically in production, generate a migration.

# npm
npm run db:gen

# pnpm
pnpm run db:gen

# yarn
yarn run db:gen

# bun
bun run run db:gen

Production

Build the application for production:

# npm
npm run build

# pnpm
pnpm run build

# yarn
yarn build

# bun
bun run build

Run production server:

#node
node .output/server/index.mjs

# pm2
pm2 .output/server/index.mjs

About

From https://www.reddit.com/r/vuejs/comments/192cgsh/introducing_usenuxt/

https://demo.usenuxt.com

License:MIT License


Languages

Language:TypeScript 52.4%Language:Vue 47.4%Language:JavaScript 0.2%