MyMood-Alexa / MyMood-Interface

0 stars 2 forks source link

[DI-2.4] Display json on table #1

Closed jtam360 closed 6 years ago

jtam360 commented 6 years ago

Data from json file should be displayed correctly in the table. connects #14 child of #14

jtam360 commented 6 years ago

The jQuery API doesn't allow us to read local files as it says: "Load JSON-encoded data from the server using a GET HTTP request."

Browser security and the DOM prevent us from reading or writing arbitrary files by design.

lydarren commented 6 years ago

Setup the database and read straight from there.

danqo commented 6 years ago

you can test the UI with local if unsure it's displaying properly, but the end goal is to have it read the json from the database

dionwu110 commented 6 years ago

Loading the JSON onto the table works as we were able to test it with some sample data. LoadJSON.png

Right now this feature only works on the remote server as it will not work locally as browsers do not allow this feature to read local files.

We will now be working on setting up the database to read from DynamoDB.