Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.39 KB

README.md

File metadata and controls

60 lines (41 loc) · 1.39 KB

Expose Typicode JSONPlaceholder API via GraphQL

Scala CI

This is an experimental project to explore GraphQL and Scala.js using

Run project

Backend

Open command line and enter

sbt backend/run

Frontend

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:
    npm install -g http-server
    Start 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