Code Monkey home page Code Monkey logo

chat2-desktop's Introduction

这是chat2的windows版本

使用方法

使用前需要有 vue-cli3 , node , npm/cnpm/yarn , python , visual studio 环境

npm install //安装项目依赖(必须)

npm install --save-dev electron-packager //安装packager包(必须)

npm install asar //安装asar (必须)


npm run serve //测试用 启用网页版(9000端口)(默认会连接我的服务器,若要在本机运行需要将./src/main.js下的development改为true,之后需要运行./node的main.js和本机开启mongodb服务)

npm run exe //测试用,打包(./dist)并启用electron开启windows客户端,但不会生成.exe文件

npm run start //测试用 ,启用electron开启windows客户端 (前提是已经打包./dist,如果只更改./main.js的内容可以用此命令)

npm run asar //将./dist在./pack下生成asar包(前提是已生成./dist文件)

npm run packager //将./pack打包生成windows客户端文件,打包后的目录为./packagefile (前提是已经在./pack下生成asar文件)

npm run asar--packager //是前两步的集成,将./dist生成asar包并在./packagefile下生成客户端文件

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.