vaffel / react-components

Searchable repository of React-components
http://react-components.com/
MIT License
164 stars 22 forks source link

Cron-based module fetching / database-backend server #23

Closed rexxars closed 9 years ago

rexxars commented 9 years ago

From day 1 it's been a pain to update components - the polling would silently fail for no good reason and a lack of logging made it hard to discover.

This PR finally addresses the whole problem by offloading the fetching to two cron-jobs: one for fetching modules from NPM, one for fetching github stars. Instead of setting the data in-memory, it will persist to Redis.

Obviously, this introduces a dependency on Redis, but since this is something hosted by VaffelNinja, I think that's reasonable.

Closes #1 and #22.