Coder Social home page Coder Social logo

nuxt3-demo's Introduction

Nuxt3 Demo

nuxt3 demo

集成功能列表

  • Saas
  • ESLint + Prettier
  • Element Plus
  • I18n
  • 数据库
  • 多环境部署

开发

导入 init.sql

$ yarn install
$ yarn dev

# 健康检查
$ curl http://localhost:3000/api/health
# 数据库API接口
$ curl http://localhost:3000/api/user

上线

  • 参考 Dockerfile,我部署使用的是 Kubernetes

你可能遇到的问题 & 解决方案

  • I18n
  • Nuxt3 I18n Discussions
  • Element Plus
  • 静态资源CDN
  • 环境配置
    • 可以参考 config 目录以及 server/db.ts 中的使用
    • Dockerfile 注入 NODE_ENV 变量,确保打包时的环境变量和上线后统一
  • 数据库: 使用的是 Sequelize ,如果使用 Typeorm 可能在配置 entities 有问题,所以也没有尝试使用

相关链接

  • 色彩方案
    • assets/scss/_var.scss 下有根据主色生成的色阶,可以通过我写的色彩方案生成,参考 Ant Design 的代码,喜欢的帮忙点个 Star
  • Nuxt3

最后要说的话

  • 目前 Nuxt3 仍存在很多问题,包括相关配套工具的没有适配,不建议此时放到生产环境,但如果是一些比较简单的项目,我倒觉得可以试一试
  • 喜欢的帮忙点个 Star

nuxt3-demo's People

Contributors

hd996 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.