Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ttrzcinski/postactionrestsparkembed
A Spark REST API processing POST to Remote MySQL.
https://github.com/ttrzcinski/postactionrestsparkembed
docker github-actions java-15 java-8 rest spark
Last synced: 5 days ago
JSON representation
A Spark REST API processing POST to Remote MySQL.
- Host: GitHub
- URL: https://github.com/ttrzcinski/postactionrestsparkembed
- Owner: ttrzcinski
- Created: 2020-06-05T06:27:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-24T16:32:03.000Z (11 months ago)
- Last Synced: 2024-01-24T17:36:50.723Z (11 months ago)
- Topics: docker, github-actions, java-15, java-8, rest, spark
- Language: Java
- Homepage:
- Size: 4.84 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 14
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Post-Action-Rest-Spark-Embed
How to build it?
```sh
$ mvn clean install
```How to run it ?
```java
$ java -jar target/parse-jar-with-dependencies.jar
```How request should look like?
```sh
{userId: ..., gameId: ...., action: ...}
```How to test it?
```sh
$ curl -X POST localhost:4567/actions -d "{"userId": 111, "gameId": 222, "action": "joined-the-game"}"
```How to stop it?
- [CTRL]+[C] in console# Run-as-contaier in Docker
How to build the image (in projec's directory)?
```sh
$ docker build --tag parse:0.0.1 .
```How to run the image?
```sh
$ docker run --publish 4567:4567 --detach --name pp parse:0.0.1
```How to save built image to file?
```sh
$ docker save parse > parse_0_0_1.tar
```How to load the image from sent archive?
```sh
$ docker load < parse_0_0_1.tar
```