Skip to content

orehathiya/example-servant-persistent

Repository files navigation

This project is a small example of servant-server, persistent and pux.

Server Side

run server

You can build and run the project with stack, e.g.:

stack docker pull
stack build
stack --docker-run-args='--net=bridge --publish=3000:3000' exec example-servant-persistent

Then you can query the server from a separate shell:

curl -H 'Content-type: application/json' localhost:3000/user/add --data '{"name": "Alice", "age": 42}'
curl -H 'Content-type: application/json' localhost:3000/user/get/Alice

purescript model & api query function generate

stack exec psGenerator

api document generate

stack exec example-servant-persistent-doc

Client Side

cd client
npm install
npm start

Then you can browse top page at http://localhost:8080

About

servant and pux app sample

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published