Skip to content

Quickly find and save the most popular repos form around the world! Responsive React/Redux app with state persistance (localStorage). Features fun Loading screen animations :D.Hosted on Surge http://ashamed-wool.surge.sh/.

Notifications You must be signed in to change notification settings

y-zaky/whatsPoppin

Repository files navigation

Notes

  • Currently, everytime you make a change to the link in localstorage.js, you would need to rebuild by doing npm run build , and then run dev again.

  • Need to create a save/post request on each click of a repo item. Or, keep it as a post request every second, to optimize calls to the DB.

  • Need to create a get request on first load of page.

  • Unrelated to this repo, but need to figure out where/.how to host the server ; (whatsapp-poppin server repo)

  • toDO : Figure out why /save is getting hit twice on every click.

  • [] stop using throttle, or, continue to use throttle, and save data in DB intermittently.

What I learned (Started this a bit late... 5/8/18)

  • When making a fetch/post, ORDER COUNTS!!!. I spent ages (2 hours) figuring out why req.body on the backend was an empty object, only to notice that I had put the body property before the headers property...... when the correct format is : { method: 'POST', headers: { "Content-Type": "application/json", }, body: reponame }

    • way to spend a sunday evening ! :D :D
  • A thunk is a function that returns a function, like a closure, but has a dispatch method and a getState method that can be used to control when you dispatch actions. By default, Redux action creators do not support Asynchronus code, but with Thunk, it becomes posssible.

  • To view data on PG Admin... Locate the 'object browser' on the left side of the screen Double-click on PostgresSQL 9.x Double-click on Databases Double-click on esp_mdphnet Expand schemas, esp_mdphnet, and Tables Right-click on the table that you wish to view Select View Data, then View All Rows

About

Quickly find and save the most popular repos form around the world! Responsive React/Redux app with state persistance (localStorage). Features fun Loading screen animations :D.Hosted on Surge http://ashamed-wool.surge.sh/.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published