vinc / news.vinc.cc

Metasearch engine for news articles 📰

Home Page:https://news.vinc.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README

https://news.vinc.cc

Examples

Self-hosting

This web app can run on your own server! You will need Redis to cache the HTTP requests it's making to its news sources, and Mongo to store the user data encrypted on the client side without knowing the key. The latter is completely optional if you don't intend to synchronize between devices.

Heroku or a similar self-hosted PaaS like Dokku is recommended. Here is the setup with the latter:

# Dokku setup
dokku plugin:install https://github.com/dokku/dokku-redis.git redis
dokku plugin:install https://github.com/dokku/dokku-mongo.git mongo
dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git
dokku config:set --global DOKKU_LETSENCRYPT_EMAIL=alice@example.com

# App setup
dokku apps:create news
dokku domains:add news news.example.com
dokku config:set news TWITTER_KEY=xxxxx
dokku config:set news TWITTER_SECRET=xxxxx
dokku config:set news NEWSAPI_KEY=xxxxx
dokku config:set news REHOST_URL=https://rehost.vinc.cc
dokku letsencrypt news
dokku redis:create news-redis
dokku redis:link news-redis news
dokku mongo:create news-database
dokku mongo:link news-database news

You can then deploy like this:

git remote add dokku dokku@dokku.example.com:news
git push dokku master

You can also try it locally like this:

bundle install
rails server

This web app uses https://github.com/vinc/rehost to rehost image, but in the future this will be integrated in the app.

License

Copyright (c) 2017-2023 Vincent Ollivier. Released under MIT.

About

Metasearch engine for news articles 📰

https://news.vinc.cc

License:MIT License


Languages

Language:Ruby 67.3%Language:HTML 16.0%Language:JavaScript 13.8%Language:SCSS 2.9%