This is an experimental project to explore GraphQL and Scala.js using
- Typicode as data storage
- Caliban as GraphQL server and client library
- Laminar as a Scala.js UI library
Open command line and enter
sbt backend/run
Open second command line and enter
sbt frontend/fastOptJS
Install http-server if necessary:
- using homebrew:
brew install http-server
- using node's
npm
command:Start http-servernpm install -g http-server
http-server -c-1
Or directly run without installing, using node's npx
command:
npx http-server -c-1
Or use Python's SimpleHTTPServer module:
python -m SimpleHTTPServer
# or the Python 3 equivalent
python3 -m http.server
Open http://localhost:8080/modules/frontend/index-dev.html in the browser