Skip to content

xerial/airframe-http-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

airframe-http-demo

Live coding demo at Airframe Meetup #2

Packaging the project and launch a web server:

$ sbt pack
$ ./target/pack/bin/demo server -p 8080

Send http requests:

$ curl -X GET  http://localhost:8080/v1/info  
{"name":"demo-app","version":"0.1"}%

# Shutdown the server
$ curl -X GET  http://localhost:8080/admin/shutdown

Run the web app using Docker:

$ sbt pack
$ docker build -t airframe-demo:latest .
$ docker run -p 8080:8080 -it airframe-demo:latest server -p 8080

Automatically restart the server when modifying the code:

$ sbt
> ~reStart server -p 8080

About

A demo project created at Airframe Meetup #2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published