Features added to the site

2020-05-18

Updates for May 18th 2020

This is the first post for the site where I am doing a bit of exploration

Stay tuned for more to come.

Exploration with mapping and filtering data

So far I have added functionality to import csv files from a site directory which contain fair odds for horse races that I would like to bet on.

I am using node.js to programmatically import the files and create a page per file. Within each page, I am filtering all of csv data for the specific race. Within each page I am then:

1. Mapping each distinct race in the file
2. Rendering a table based on the data for each race

Within graphql I am querying the data based on the slug for the page

Then I am using javascript to:

map().filter()

the data so each table can be rendered separately

AWS Amplify

Deployment to AWS Amplify was as simple as connecting my Github repository to AWS and then clicking deploy.

Future developments

Soon I hope to add some functionality that allows users to login and view data on the site.

I would also like to add much more styling to the site, specifically to the data tables. I have done some work to investigate react-table, and also looked into determining if using a Google Sheets API or AirTable would be better than hosting local csvs. The answer to that is still to be determined.

Created by John Camardo © 2020