Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.58 KB

File metadata and controls

32 lines (21 loc) · 1.58 KB

ReactJS General Assembly Workshop

Deployed @ https://react-ga-workshop.herokuapp.com/

How to run ?

npm install
npm install webpack -g
npm run build
npm run start
  • Check package.json for more information

Want to create your API ?

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 on Manage API access and enable Public API access (read-only).
  • Once you have your API you will have to update baseUrl and sheetName accordingly in app.js. If your api has different fields than the one in this example code. Please update UserProfile component with relevant fields and change code accordingly.

Learn more here,