This is the preparation procedure for Hands-on to touch Akka from Java.
git clone [email protected]:yugolf/akka-in-action-java.git
Run the test
mvn test
Execution result
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< com:goticks-java >--------------------------
[INFO] Building goticks-java 1.0
[INFO] --------------------------------[ jar ]---------------------------------
(abridgement)
Results :
Tests run: 14, Failures: 0, Errors: 0, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12.740 s
[INFO] Finished at: 2018-12-08T23:19:20+09:00
[INFO] ------------------------------------------------------------------------
Start the server
mvn compile exec:exec
HTTP request
http POST localhost:5000/events/JJUG/ tickets:=5
HTTP response
HTTP/1.1 201 Created
Content-Length: 27
Content-Type: application/json
Date: Sat, 08 Dec 2018 14:36:29 GMT
Server: GoTicks.com REST API
{
"name": "JJUG",
"tickets": 5
}
HTTP request (event list)
http GET localhost:5000/events/
Execution result
HTTP/1.1 200 OK
Content-Length: 40
Content-Type: application/json
Date: Sat, 08 Dec 2018 14:37:24 GMT
Server: GoTicks.com REST API
{
"events": [
{
"name": "JJUG",
"tickets": 5
}
]
}
) from
Project from Existing Sources ...`
Finish
to start importing the projectThat's all for preparation. Thank you for your support.
Hands-on was done on the "hands on" branch.
Switch branches
git checkout handson
Recommended Posts