GithubHelp home page GithubHelp logo

maccman / monocle Goto Github PK

View Code? Open in Web Editor NEW
1.5K 49.0 123.0 776 KB

Link and news sharing

Home Page: http://monocle.io

License: MIT License

Ruby 41.44% CoffeeScript 29.31% JavaScript 0.80% CSS 28.46%

monocle's Introduction

Monocle

Monocle is a link and news aggregation website.

http://monocle.io

Screenshot

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=123

export TWITTER_KEY=123
export TWITTER_SECRET=123

Or 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.save

Now you will be able to post, comment and invite users.

monocle's People

Contributors

maccman avatar mariochavez avatar olivierlacan avatar rajeshduggal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

monocle's Issues

Hooks?

It's not technically an issue, but a dev question. As I want to submit a pull request for a feature dear to my heart I wanted to know if there was some kind of 'hook' mechanism to know when a new item as been added, when it's been voted up and/or when its rank is high enough to be on the "Hot" list!

That would be convenient if that's missing :p

Using cursor keys to navigate LHS causes many items to be placed in history stack

To reproduce, have a bunch of items in LHS and hold down bottom cursor key.

You can watch the URLs fly by in the address bar, as well as the back button now going through each one.

It'd be better to debounce this "navigate" action, so you can hold down a cursor key to jump a number of items without adding them to your history stack.

Add "not now" button when prompted to create a post after login

I don't think the user should be required to add a post after just entering Monocle.

While a nice thing to have for enforcing participation in the community, it doesn't fit very nicely with people logging in just to comment. And in the worst case scenario in some communities, it could generate a flood of weak posts.

Invite-only system no longer working

Howdy!

It seems the invite system was partially removed in commit cdf602d. Part of what made me interested in using this project in the first place was the invite system, and it's kinda confusing that there are still relics from that (Limited invites, columns in the User model).

Suggested resolution:

  • Re-add the invite system in a more modular fashion, such that it can be turned off and on via config option.
  • Failing that, remove the constrained invitation system (I.e., give users unlimited invites).
  • Create a branch for using the invitation system, such as is suggested used to be the case in Dan's amazing Heroku blogpost.

Not able to configure Memcache + Redis to external hosts

I've got a fix for this in my fork but just checking everything works as expected

Seems like just setting ENV vars works for memcache but not the case for redis?

I'll try to get some Pull requests in for these issues I'm creating, just making the issue so I don't forget and for other people's info when they come to do what I've been doing this morning

Javascript file format

I tried to get Monocle to run on django this afternoon but I couldn't figure out what this file format was:

//= require ./core/monocle
//= require ./compat/env
//= require ./compat/css
//= require ./compat/stubs
//= require ./compat/browser
//= require ./compat/gala

And how to get it to work.

Install on Cloud9

How would I be able to install this on Cloud 9?

Thank you

Sincerely,
Postrr

Installing Monocle on Heroku

I have had a series of challenges deploying Monocle to Heroku. Has anyone done it? Can you share your experience with a step-by-step guide?

Posts are shown twice in the new view.

This bug shows up in production on monocle.io.

It can be replicated by clicking new at top left scrolling a good ways down the list and then search the page for one of the Posts titles' you should see the post occur twice in the list.

bundle install error

Hey when executing bundle install on ubuntu 12.04 i get:

'Could not find gem 'active_support (>= 0) ruby' in the gems available on this machine.'
could you please give me any clue on what is this.

assets trying to load from http://assets.example.com/

should be configurable

Monocle.io has assets.monocle.io and the images load fine there, Is this pointing to a CDN service that crops images or another app? I can't see any form of image processing in monocle itself....

EDIT: so monocle.io goes to cloudfront and I can only presume you have an image processing backend behind that,
Make the URL configurable and update README to state that this is the case ๐Ÿ˜„

I'll try to get some Pull requests in for these issues I'm creating, just making the issue so I don't forget and for other people's info when they come to do what I've been doing this morning

Support for categories

I'm opening this issue for discussion of whether creating categories (AKA "subreddits") would be a nice thing.

It requires a substantial change of workflow and UI.

I propose the categories stay somewhat hidden, with a dropdown menu near the bottom if the person wishes to switch from the general view to just one single category.

Is there an admin interface?

Hi!
Really enjoying this project, have installed it for a professional link sharing site I and a colleague are launching.

Quick question, though โ€” I'm setup as an admin via irb as per the instructions, but does that actually do anything? It doesn't seem like I have any more privileges than a regular user, insomuch that I don't seem to be able to delete posts or comments or anything.

Also and maybe related, but it doesn't seem like the invite system is fully-working โ€” users who sign-up via Twitter or GitHub are given full posting privileges, without needing admin approval.

Any thoughts? Thanks!

assets trying to load from http://assets.example.com/

should be configurable

I'll try to get some Pull requests in for these issues I'm creating, just making the issue so I don't forget and for other people's info when they come to do what I've been doing this morning

Support for text-only entries

I'd like to see support for text entries, like those in HN or Reddit. I think those really help to strenghten the bond of an online community (like Ask Reddit or Ask HN)

I want to program that, but I'd like to know first the opinion of the makers whether such patch would be considered.

Thanks!

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.