GithubHelp home page GithubHelp logo

kamocyc / rep-rss Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.72 MB

RSS with Twitter and Hatena Bookmark reputation.

JavaScript 1.96% TypeScript 95.61% HTML 0.30% CSS 2.13%
rss twitter hatena-bookmark

rep-rss's Introduction

Rep RSS

RSS with Twitter and Hatena Bookmark reputation.

Hosted at https://ancient-shelf-27599.herokuapp.com/ .

screenshot

How to build

Install node.js and yarn.

Install PostgreSQL.

sudo apt install postgresql-10

Change password of PostgreSQL (or change password in sequelize-loader.ts).

$ sudo su - postgres
$ psql
postgres=# alter role postgres with password 'postgres';

And create rep_rss DB.

postgres=# create database rep_rss;
postgres=# \q

Install packages.

yarn install

You need Twitter's developer account. Please get your API key (CONSUMER_KEY) and API secret key (CONSUMER_SECRET).

Also register http://127.0.0.1:3000/auth/twitter/callback and http://127.0.0.1:8080/auth/twitter/callback as Callback URL of your Twitter App.

Development

First, you must build files.

$ yarn build

Then, create .env file in the repository's root directory.

CONSUMER_KEY="YOUR_CONSUMER_KEY"
CONSUMER_SECRET="YOUR_CONSUMER_SECRET"
SITE_URL="http://127.0.0.1:8080/"
APP_HASH_KEY="YOUR_CHOOSING_APP_HASH_KEY"
APP_ENC_KEY="YOUR_CHOOSING_APP_ENC_KEY"
SESSION_SECRET = "YOUR_CHOOSING_SESSION_SECRET"

Now, run the app.

yarn dev

Deploy to Heroku

Prerequisite.

$ heroku login -i
$ heroku create
$ heroku addons:create heroku-postgresql:hobby-dev

Change SITE_URL in the .env file to URL of the Heroku app.

...
SITE_URL="https://your-heroku-app-url/"
...

Push config (the .evn file) to Heroku.

$ heroku plugins:install heroku-config
$ heroku config:push

Push code to Heroku.

$ git push heroku master

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.