Giter VIP home page Giter VIP logo

nuxt.tbug's Introduction

从壹开始 [ Nuxt.js ] 之一 || 为开源收录Bug之 TiBug项目 。一个基于 Nuxt.js 提bug项目,收录有关.NetCore、DDD、Vue等相关Bug异常信息。

给个星星! ⭐️

如果你喜欢这个项目或者它帮助你, 请给 Star~(辛苦星咯)


安装

 git clone [email protected]:anjoy8/Nuxt.tBug.git

安装包依赖

 npm install

运行

运行发开环境

npm run dev

本地访问http://localhost:3089

可以在 package.json 中修改端口:

  "config": {
    "nuxt": {
      "host": "127.0.0.1",
      "port": "3089"
    }
  },
  
  

编译

build for production and launch server

npm run build
npm start

生成

npm run generate

两种部署方法

SPA 部署

直接执行下边命令,生成 dist 文件夹,然后 nginx 代理部署即可,

这种部署仅仅是 SPA 的方法,不会有服务端渲染。

npm run generate

SSR 部署

先编译,然后再执行即可,这个时候会启动一个 node 服务端口监听,就类似 netcore 部署一样, 可以守护下这个进程,然后反向代码这个端口。

npm run build
npm start

三大平台同步直播

博客园:https://www.cnblogs.com/laozhang-is-phi/p/10236645.html

简 书:https://www.jianshu.com/notebooks/28621653

CSDN:https://blog.csdn.net/baidu_35726140

nuxt.tbug's People

Contributors

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