No description
  • TypeScript 71.3%
  • Vue 22.5%
  • SCSS 5.1%
  • JavaScript 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-22 18:26:58 +08:00
.github chore(root): upgrade deps 2024-06-12 14:37:32 +08:00
.vscode chore(root): upgrade deps 2024-06-12 14:37:32 +08:00
assets/images feat: add "@intlify/nuxt3" for i18n and GraphQL API with Apollo 2022-06-03 22:23:01 +08:00
components Merge branch 'main' of github.com:antfu/vitesse-nuxt3 2023-10-19 16:47:05 +08:00
composables chore: upgrade deps 2024-06-12 10:49:43 +08:00
config Merge branch 'main' of github.com:antfu/vitesse-nuxt3 2023-09-04 15:46:04 +08:00
constants feat: PWA using @vite-pwa/nuxt module with auto update strategy (#75) 2023-02-18 12:00:15 +01:00
docker docker: add Dockerfile for CI pipeline 2022-12-21 16:19:13 +08:00
generated chore: remove unused generated types 2023-02-02 11:17:59 +08:00
k8s k8s: add example Pulumi project to deploy to K8s 2022-12-22 17:02:14 +08:00
layouts chore: upgrade deps 2024-06-12 10:49:43 +08:00
locales feat: switch to official @nuxtjs/i18n 2023-09-26 15:07:08 +08:00
pages Merge branch 'main' of github.com:antfu/vitesse-nuxt3 2023-10-19 16:47:05 +08:00
plugins feat: switch to official @nuxtjs/i18n 2023-09-26 15:07:08 +08:00
public feat: PWA using @vite-pwa/nuxt module with auto update strategy (#75) 2023-02-18 12:00:15 +01:00
server chore: update deps (#92) 2023-05-18 11:17:55 +02:00
stores chore(root): upgrade deps 2024-06-12 14:37:32 +08:00
styles feat: merge upstream 2024-10-22 15:58:21 +08:00
types Merge branch 'main' of github.com:antfu/vitesse-nuxt3 2023-03-14 19:15:35 +08:00
.commitlintrc.cjs chore: upgrade deps 2024-06-12 10:49:43 +08:00
.gitignore Merge branch 'main' of github.com:antfu/vitesse-nuxt3 2023-03-14 19:15:35 +08:00
.npmrc Merge branch 'main' of github.com:daotl/nuxt-starter 2023-03-15 09:09:19 +08:00
.stackblitzrc chore: update sbrc 2021-11-05 13:41:28 +08:00
.stylelintignore Merge branch 'main' of github.com:daotl/nuxt-starter 2023-10-19 17:22:02 +08:00
.stylelintrc.cjs Merge branch 'main' of github.com:antfu/vitesse-nuxt3 2023-10-19 16:47:05 +08:00
app.config.ts feat: add "app.config.ts" 2022-10-26 15:41:28 +08:00
app.vue Merge branch 'main' of github.com:antfu/vitesse-nuxt3 2023-10-19 16:47:05 +08:00
eslint.config.js feat: merge upstream 2024-10-22 17:59:31 +08:00
i18n.config.ts feat: switch to official @nuxtjs/i18n 2023-09-26 15:07:08 +08:00
lefthook.yml k8s: add example Pulumi project to deploy to K8s 2022-12-22 17:02:14 +08:00
LICENSE docs: add license and funding (#76) 2023-02-07 17:20:33 +01:00
netlify.toml chore: upgrade deps 2024-06-12 10:49:43 +08:00
nuxt.config.ts chore: upgrade deps 2024-06-12 10:49:43 +08:00
package.json feat: upgrade self dependences 2024-10-22 18:26:58 +08:00
pnpm-lock.yaml feat: upgrade self dependences 2024-10-22 18:26:58 +08:00
pnpm-workspace.yaml k8s: add example Pulumi project to deploy to K8s 2022-12-22 17:02:14 +08:00
README.md feat: upgrade self dependences 2024-10-22 18:26:58 +08:00
sandbox.config.json feat: add "@intlify/nuxt3" for i18n and GraphQL API with Apollo 2022-06-03 22:23:01 +08:00
serverless.yml feat: add "@intlify/nuxt3" for i18n and GraphQL API with Apollo 2022-06-03 22:23:01 +08:00
tsconfig.json Merge branch 'main' of github.com:daotl/nuxt-starter 2023-10-19 17:22:02 +08:00
uno.config.ts Merge branch 'main' of github.com:daotl/nuxt-starter 2023-05-24 14:41:41 +08:00

References:

  • https://github.com/antfu/vitesse-nuxt3
  • https://github.com/element-plus/element-plus-nuxt-starter
  • https://github.com/bicouy0/nuxt3-urql
  • https://github.com/newbeea/nuxt3-apollo-starter
🧪 Working in Progress


🖥 Online Preview

Features

  • 💚 Nuxt 3 - SSR, ESR, File-based routing, components auto importing, modules, etc.

  • 🌏 i18n, powered by @nuxtjs/i18n.

  • Vite - Instant HMR

  • 🎨 UnoCSS - The instant on-demand atomic CSS engine.

  • 📦 Element Plus - Vue 3 UI component library.

  • 😃 Use icons from any icon sets in Pure CSS, powered by UnoCSS.

  • 🔥 The <script setup> syntax.

  • 🍍 State Management via Pinia, see ./composables/user.ts.

  • 📑 Layout system.

  • 🛠 VueUse - collection of useful composition APIs

  • 🐉 RxJS

  • 📥 APIs auto importing - for Composition API, VueUse and custom composables.

  • 🏎 Zero-config cloud functions and deploy.

  • 🦾 TypeScript, of course.

  • 📲 PWA with offline support and auto-update behavior.

Plugins

Nuxt Modules

  • VueUse - collection of useful composition APIs.
  • ColorMode - dark and Light mode with auto detection made easy with Nuxt.
  • UnoCSS - the instant on-demand atomic CSS engine.
  • Pinia - intuitive, type safe, light and flexible Store for Vue.
  • VitePWA - zero-config PWA Plugin for Nuxt 3.
  • DevTools - unleash Nuxt Developer Experience.

IDE

We recommend using VS Code with Volar to get the best experience (You might want to disable Vetur if you have it).

Variations

Try it now!

Online

GitHub Template

Create a repo from this template on GitHub.

Clone to local

If you prefer to do it manually with the cleaner git history

npx degit antfu/vitesse-nuxt3 my-nuxt3-app
cd my-nuxt3-app
pnpm i # If you don't have pnpm installed, run: npm install -g pnpm

Dev

npm run dev

Website: http://127.0.0.1:3000

Deploy

Normal server

build

npm run build

start

npm run start

Serverless(aws lambda) mode

Setup CDN

set cdnURL in nuxt.config.ts

build with lambda preset
npm run build:lambda
upload static files

upload .output/server/public/* to cdn (cdnURL)

custom domain (optional)

config customDomain in serverless.yml

custom:
  customDomain:
    http:
      domainName: xxx.yourdomain.com
      endpointType: regional
      certificateName: yourdomain.com
      createRoute53Record: true
plugins:
  - serverless-domain-manager

then

npm run serverless:domain

deploy

npm run serverless:deploy

then visit xxx.yourdomain.com