Giter VIP home page Giter VIP logo

mjl-nuxt's Introduction

Nuxt 3 Minimal Starter

Look at the Nuxt 3 documentation to learn more.

Directory Structure

├─.eslintignore // eslint忽略文件
├─.gitignore //git忽略文件
├─eslintrc.js
├─nuxt.config.ts // nuxt配置文件
├─package.json // 项目配置文件
├─pnpm-lock.yaml // 依赖版本锁定
├─prettier.config.js
├─README.md // 项目说明文件
├─tsconfig.json //ts配置文件
├─src 
|  ├─app.vue //根组件
|  ├─store  //数据状态管理
|  ├─plugins
|  ├─pages //路由页面
|  ├─layouts //页面构建组件
|  ├─composables
|  ├─components //组件
|  ├─assets //静态文件
├─server //接口服务器目录

Nuxt有一些约定目录,有特殊功能,如:pages目录的vue文件会自动注册路由

Nuxt.js自带基于文件的路由系统,不需要安装vue-router,不需要额外配置

Vant/Nuxt组件库

专门用于nuxt版本的vant组件库

此处使用node版本是18.16.0(建议大于等于该版本,如果安装有报错,建议升级node版本),pnpm:8.15.4

npm i vant @vant/nuxt -D

Setup

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

# bun
bun install

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

Production

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

Check out the deployment documentation for more information.

mjl-nuxt's People

Contributors

mjlxiaoma avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.