Public | Automated Build

Last pushed: 5 months ago
Short Description
P2M message microservice, use p2m-message-client to communicate with it.
Full Description

Start local service for development

  1. Ensure MySql server is running in localhost
  2. Create database dev_p2m_message_server.
  3. Run following command to initialize database
    yarn run migration
  4. Start service
    yarn start

Start a message service as docker

docker run -d \
    --restart always \
    -p <port>:80 \
    -e SERVER_PATH=<service path, default is /messages> \
    -e DB_HOST=<mysql container name, default is mysql> \
    -e DB_DATABASE=<mysql database name, default is p2m_message_server> \
    -e DB_USERNAME=<mysql user name, default is root> \
    -e DB_PASSWORD=<mysql password, default is aaaaaaaa> \
    -e JPUSH_APPKEY=<your jpush appKey> \
    -e JPUSH_MASTER=<your jpush masterSecret> \
Docker Pull Command
Source Repository