https://github.com/maccman/monocle
Link and news sharing
https://github.com/maccman/monocle
Last synced: 13 days ago
JSON representation
Link and news sharing
- Host: GitHub
- URL: https://github.com/maccman/monocle
- Owner: maccman
- License: mit
- Created: 2013-09-30T23:28:34.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-07-16T16:18:16.000Z (almost 11 years ago)
- Last Synced: 2025-04-10T04:44:05.644Z (15 days ago)
- Language: Ruby
- Homepage: http://monocle.io
- Size: 758 KB
- Stars: 1,446
- Watchers: 49
- Forks: 119
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
- Open-Source-Ruby-and-Rails-Apps - monocle - Link and news sharing 👴 ✅ (Happy Exploring 🤘)
README
## Monocle
Monocle is a link and news aggregation website.
http://monocle.io

### Prerequisites
* Ruby 2.0
* Postgres 9.3
* Redis
* A GitHub app account
* A Twitter app account### Setup
bundle install
createdb monocle_development
rake db:migrate### Configuration
Monocle needs a few configuration variables to work properly.
You can export them from your terminal like in the following example:export GITHUB_KEY=123
export GITHUB_SECRET=123export TWITTER_KEY=123
export TWITTER_SECRET=123Or you can copy the included .sample.env into a .env file and set all your
variables there.### First time user
To become administrator as first time user, first start Monocle with:thin start
Login with twitter or github into Monocle, then open a terminal and open Monocle inside an IRB session with:
irb -r ./app.rb
From there execute:
user = Brisk::Models::User.first
user.admin = true
user.registered = true
user.saveNow you will be able to post, comment and invite users.