Personal website built by Nuxt 3
English | 简体中文
Tip
Node version >= 18
Start the development server on http://localhost:3000
:
# npm
npm install
npm run dev
# pnpm
pnpm install
pnpm run dev
# yarn
yarn install
yarn dev
Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
# Build an image
docker build -t my-nuxt-app .
# Run container
docker run -d -p 3000:3000 --name my-running-nuxt-app my-nuxt-app
# View the running container
docker ps
# View all containers
docker ps -a
MIT © haohaitao