Deployed @ https://react-ga-workshop.herokuapp.com/
npm install
npm install webpack -g
npm run build
npm run start
- Check package.json for more information
For this project we are using Fieldbook to simulate a public api. I exported usernames from Gitter wdi-sg-discussions and uploaded them to Fieldbook to create a REST API out of it. Want to create your own API ? Its easy stuff ... here is how to do it,
- Goto Fieldbook and Sign Up (its free)
- Once you are in, create a sheet (Sheet=Excel Stuff) by clicking
Add Sheet
(normally there would be default sheet that you can use) - Now you can add fields and manually type in data or upload a csv. In my case i took a JSON object from gitter api and just converted into csv. There are bunch of online tools to do it.
- Once data is uploaded or entered. Click on
API
tab above and then click onManage API access
and enablePublic API access (read-only)
. - Once you have your API you will have to update
baseUrl
andsheetName
accordingly inapp.js
. If your api has different fields than the one in this example code. Please updateUserProfile
component with relevant fields and change code accordingly.
Learn more here,