KrYounger ed175e1482 Merge pull request #3 from xt0fer/heroku-pg | il y a 6 ans | |
---|---|---|
.mvn/wrapper | il y a 6 ans | |
frontend/SimpleMonday | il y a 6 ans | |
src | il y a 6 ans | |
.gitignore | il y a 6 ans | |
Procfile | il y a 6 ans | |
README.md | il y a 6 ans | |
application.properties | il y a 6 ans | |
mvnw | il y a 6 ans | |
mvnw.cmd | il y a 6 ans | |
pom.xml | il y a 6 ans |
Use Spring, and HAL Browser (for Spring Data REST) to create a couple of POJOs (Book and Person) and a framework so that we can mock up some data in spring, and then generate JSON and other marvels.
Run and then point a browser to [http://localhost:8080/]()
Yes, that's right, you can do a very simple CRUDRepository in Spring to suply the data you need!
You're welcome.
Then open VSC on the SAME project. Go into frontend/SimpleMonday and find a simple Ionic 3 client, which can talk to the Spring server above, fetch a single GET from the server display the results in the People tab of the SimpleMonday client.
BUT to make this work, you need to go to [http://localhost:8100]() with the Chrome browser, and then download and INSTALL this extension: https://chrome.google.com/webstore/detail/cors-toggle/jioikioepegflmdnbocfhgmpmopmjkim That will allow the SimpleMonday client to load the JSON from localhost:8080 Otherwise the SimpleMonday client runs afoul of CORS (look it up).