Skip to content

renawatson68/ruby-on-rails-feeder

Repository files navigation

Freefeed Feeder

Feeder is a content sharing service built for freefeed.net, an open source social network. Feeder can monitor RSS, ATOM, Reddit, Twitter, YouTube, Tumblr, or potentially any other web feed updates, normalize the content and share clean and readable excerpts on FreeFeed. Check out https://freefeed.net/xkcd for example.

References

Development

Vagrant setup:

vagrant up
vagrant ssh

Running Rails server:

bundle install
bundle exec rails server

Running Webpack dev server:

yarn install
./bin/webpack-dev-server

Running tests:

bundle exec rails test

Docker setup

Build docker image:

docker-compose build

Install dependensies:

docker-compose run app bin/setup

Start feeder web app:

docker-compose up app

Start dev environment bash console:

docker-compose run app bash

Start Rails console:

docker-compose run app bundle exec rails c

Run test suite:

docker-compose run test

Stream logs:

docker-compose logs -f app
docker-compose logs -f app webpack

Scheduling

Schedule feeds updates:

*/5 * * * * cd /var/www/feeder/current && RAILS_ENV=production /home/deploy/.rbenv/shims/bundle exec rails feeder:pull_stale jobs:workoff

Schedule Freefeed stats update:

0 * * * * cd /var/www/feeder/current && RAILS_ENV=production /home/deploy/.rbenv/shims/bundle exec rails feeder:subs jobs:workoff

Communication

If you have a question or want to report a bug, please open an issue.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages