Giter Club home page Giter Club logo

license's Introduction

简介

依赖工具

node (v10.15.3)

npm (6.4.1)

安装插件

npm install

修改service ip和端口

若启动的service不与前端服务在同一机器上,或service端口不是8080,在public/host.json文件中修改service ip和port。

启动服务

yarn start

若以上自带的前端服务器不能满足需求,可以通过以下命令打包,然后部署到更好的服务器上(如nginx等)。

打包发布

npm run build
  • 运行上述命令后会产生一个dist文件夹,将该文件夹部署在服务器上,将入口文件指定为dist文件夹下的index.html即可。
  • 如若使用dist文件夹拿去部署,那么请再dist/host.json配置api service host。

nodes

linux离线安装nginx教程:

https://github.com/tongwl/nginx_learning/tree/master/linux_nginx/linux%E7%A6%BB%E7%BA%BF%E5%AE%89%E8%A3%85nginx%E6%95%99%E7%A8%8B

license's People

Contributors

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