Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

MapGIS Webclient Javascript Website

Project setup

npm install 
# or
yarn install

Compiles and hot-reloads for development

npm run serve 
# or
yarn serve

Compiles and minifies for production

npm run build 
# or
yarn build

Lints and fixes files

npm run lint 
# or
yarn lint

Customize configuration

See Configuration Reference.

express 后台运行f发布

  1. 安装全局的express环境
    npm install -g express-generator@4
  2. 进入对应的webclient-javascript-vue的express目录下
    cd path/to/website/express
  3. 在express目录下新建server文件夹,并按需修改app.js中的端口
    express server && cd server
    app.listen(8899)
  4. 在server目录下安装依赖
    npm install
    npm install --save node-windows
    npm start
  5. 复制上一级中的windowserver.js到当前目录,并修改里面的路径
    let svc = new Service({
        name: "WebClientTest", //服务名称
        description: "WebClient项目NodeJs服务器", //描述
        script: "path/to/webclient-javascript-vue/express/server/bin/www", //nodejs项目要启动的文件路径
    });
  6. 启动对应的windowserver脚本,注册为windows的服务
    node windowserver.js
  7. 在windows的服务中,启动服务,默认情况是随开机自启的