Skip to content

adrianfilip/reservation-booker

Repository files navigation

I. Start the app

1. Start backend

- tab 1

sbt "~bookerService/reStart"

2. Start frontend

- tab 2

sbt "~bookerUI/fastLinkJS"

- tab 3

cd booker-ui
#only has to be run once
npm install
yarn exec vite

Then you can access the frontend at http://localhost:3000 and login with user/pass: john/aaa or jane/aaa

Once logged in you should see this screen:

II. Other commands

sbtn "~bookerService/reStart"

sbtn "~bookerUI/fastLinkJS"

cd booker-ui
yarn exec vite

curl -X POST http://localhost:8090/login -H 'Content-Type:application/json' -d '{"username":"my_login","password":"my_password"}' | jq

curl -v -X POST http://localhost:8090/login -H 'Content-Type:application/json' -d '{"username":"my_login","password":"my_password"}' | jq

#ports
lsof -PiTCP -sTCP:LISTEN

III. Other details

This project is a Proof of Concept for Scala 3 + ZIO 2 + zio-http + Laminar so not all simplifications or refactors that can be done are done.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages