Coder Social home page Coder Social logo

daily-report's Introduction

野火日报服务

野火日报服务是野火开放平台中的一个demo应用,用来演示如何开发或则对接第三方应用系统。

创建应用

在野火开放平台创建应用,填写预先分配给应用的地址,创建完成后得到appid和appsecret。

Demo前端的编译

进入到web目录,执行如下命令:

npm install
npm run build

编译成功后会自动放入到后端的static目录,不用手动拷贝。

Demo后端的编译

进入到server目录,执行如下命令:

mvn clean package

配置

编译后的软件包在target目录下的daily-report-0.1.jar,包中已经包含了前后端的代码。运行时需要把server目录中的config目录拷贝到此jar的同级目录。

# IM服务地址,注意端口是80,不是管理API的18080.
im.url=http://wildfirechat.net
# 应用ID
application.id=xxxxxxxx
# 应用密钥
application.secret=123456

此外还有其它配置,比如端口和数据库可以配置。默认使用的是h2数据库,上线前请切换到MySQL或则其它关系型数据库。

运行

执行命令

nohup java -jar daily-report-0.1.jar 2>&1 &

验证

手机打开工作页面,点击创建的应用,进入应用测试。

daily-report's People

Contributors

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