https://github.com/adorsys/amp
Adorsys Message Push CDI Component
https://github.com/adorsys/amp
Last synced: 8 months ago
JSON representation
Adorsys Message Push CDI Component
- Host: GitHub
- URL: https://github.com/adorsys/amp
- Owner: adorsys
- License: apache-2.0
- Created: 2015-09-18T15:39:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-14T12:17:45.000Z (over 8 years ago)
- Last Synced: 2025-01-01T02:20:02.579Z (9 months ago)
- Language: Java
- Size: 47.9 KB
- Stars: 1
- Watchers: 10
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Run the demo server
## preconditions
* docker is installed
* docker compose is installed
* maven is installed
## get it running* run ```mvn clean install``` on the base directory
* run docker-compose up on the base directory
* install a mobile test app like [GCM Server Helper]
* register your device:
```
curl -X PUT http://docker:8080/gcm-server-test/rest/notification-topic/foobar/device-regs/GCM_API_KEY
```
* send a message to your device:
```
curl -X POST http://docker:8080/gcm-server-test/rest/notification-topic/foobar -H "Content-Type:application/json" --data "{\"notification\":{\"title\":\"hello push\"}, \"data\":{\"myprop\":\"test\"}}" -i
```