Skip to content
Neil Johnson edited this page Nov 9, 2021 · 8 revisions

You can run the app locally on port 8080 using the following Bash commands from the project root:

sudo docker build -t versa .
sudo docker run -it --rm --name versa-app -p 8080:8080 versa

Then you can run the browser app to consume the API endpoints defined in it. Currently only POST /party and GET /parties are defined.

To test the API, you can use curl:

curl http://localhost:8080/party
curl http://localhost:8080/parties

Storage is all in-memory at this point, nothing persisted to or read from disk/DB, so for the time being, you'll need to call POST methods to put data in before getting data out.

Clone this wiki locally