A searchable, sortable UI for the public record of ASU Employees' salaries
This repo contains a client for searching, sorting, and browsing the salaries of ASU employess, a set of scripts to format the data, and the data itself.
To add another year of data, you’ll need to complete these steps:
The converter script and the client compiler both require you to have Node installed on your computer. The scripts were written for Node 10, but newer version should work just fine.
You’ll also need to be familiar with how to use your computer’s command line shell. If you’re on a mac, there’s an app called terminal
, if you’re on a PC, it’s called cmd
.
The existing safeembed on the website should continue to work after you follow the steps above.
yarn
in your command line to install our dependenciescsv-to-json.js
into the data-csv
folder and name it 2019.csv
(or whatever else)YEAR
variable on line 18 of csv-to-json.js
node csv-to-json.js
to generate a new JSON fileYEARS
array on line 19 of App.tsxselectedYear
on line 66 of App.tsxyarn
to install our dependenciesyarn start
to test your changes and make sure the new year appears in the list and worksyarn build
, which will place some files in the dist folder.dist
folder on master.The client is written in Typescript with React 16. I tried to use the accepted best practices at the time I wrote it. You’ll need Yarn 1.
yarn
will install its dependenciesyarn start
will start the development serveryarn build
will build the static files for deployment
Place the following in any webpage (a safeembed
in CEO at the time of writing, but future CMSes may be different)
<iframe src="https://thestatepress.github.io/SalaryList/dist/index.html?embed=true" frameborder="0" width="100%" height="400"></iframe>
If something breaks, please don’t hesitate to email me. I’m the original author of this code and I’m always happy to help out my friends at The State Press.
chuck@chuckdries.com