Coder Social home page Coder Social logo

pushme-server's Introduction

PushMeServer

PushMeServer是基于nodejs开发的PushMe APP消息服务器,支持安装、登录、管理push_key的功能,环境要求nodejs版本>=16。

仓库地址

Github:https://github.com/yafoo/pushme-server

Gitee:https://gitee.com/yafu/pushme-server

系统安装

一、Docker部署

docker run -dit -p 3010:3010 -p 3100:3100 -v $PWD/pushme-server/config:/pushme-server/config --name pushme-server --restart unless-stopped yafoo/pushme-server:latest

注意:镜像内没有打包node_moudules目录,容器首次启动时会自动安装依赖,所以启动速度没那么快。

二、源码安装

环境要求:nodejs>=16

端口要求:31003010

在程序根目录执行命令:

npm i
node ./server.js

系统初始化

假如你的服务器IP为0.0.0.0,则:

  • 0.0.0.0:3100:为消息服务器,在PushMe安卓客户端,设置自建服务,host填写0.0.0.0,端口填写3100,保存即可。
  • 0.0.0.0:3010:为Web管理及接口服务器,首次访问http://0.0.0.0:3010,会提示安装,安装后进入首页,可以在线测试消息发送功能。

接口地址

消息接口地址为:http://您服务器:3010

端口更改、域名绑定

如果您想使用其他端口,请在server.js文件内修改,同时您也可以通过nginx绑定自己的域名,通过域名访问。

二次开发

如果您需要二次开发,请参考jj.js 开发框架,开发时注意打开调试模式,在config/app.js里设置app_debugtrue,上线时记得关闭调试模式。

pushme-server's People

Contributors

yafoo avatar

Stargazers

xiaocai avatar  avatar  avatar  avatar aubrey avatar  avatar ilip avatar  avatar cvabm avatar  avatar onlyistranger avatar Yuki avatar Cha avatar wxyShine avatar  avatar ConteMan avatar LiesAuer avatar

Watchers

 avatar

pushme-server's Issues

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.