Code Monkey home page Code Monkey logo

rails-hackernews-reddit-producthunt-clone's Introduction

Maintained by Blair Anderson - Amazon Consultant

Open Source Helpers

DEMO

Screenshot

This is the readme.md for a Ruby on Rails application that mimics social news link sharing websites like HackerNews, ProductHunt, and Reddit.

Obviously the styling is different but the base functionality exists.

Why?

Because when i was learning to program, I wanted to play with code that had a familiar model and get some instant gratification.

The problem with learning to code is the learning-curve. Shit is real and painful and i found that the best cure for the pain was cloning an app with features and tweaking until it broke and learning along the way.

I think this is why wordpress is SO popular. Its stupid-easy to fire-up, and changes come with one-click package installs and tiny code changes.

Features

  • A visitor can view the list of items
  • A visitor can view a single item and comment on it
  • A visitor can register for an account
  • A user can login and logout
  • A user can submit a new item
  • A user can like/unlike an item
  • Google Analytics Integration

Deploy?

Deploy

learn more about

Change the Code!!!

My main goal for this is to give new programmers some code to look at and talk about. Anytime i get questions, I plan to add them here...

Open your terminal

$ git clone [email protected]:blairanderson/rails-hackernews-reddit-producthunt-clone.git
$ cd rails-hackernews-reddit-producthunt-clone
$ bundle
$ bundle exec rake db:create db:migrate db:seed

rails-hackernews-reddit-producthunt-clone's People

Contributors

blairanderson 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

rails-hackernews-reddit-producthunt-clone's Issues

postgres error after heroku deployment

Hi! I've just deployed the app to heroku. using one click deployment, and i get a 500 on the home page. Here's the logs:
Started GET "/" for 91.64.241.31 at 2016-11-10 13:59:10 +0000 2016-11-10T13:59:10.047417+00:00 app[web.1]: Processing by ItemsController#index as HTML 2016-11-10T13:59:10.049415+00:00 app[web.1]: Item Load (1.2ms) SELECT "items".* FROM "items" ORDER BY "items"."rank" DESC 2016-11-10T13:59:10.049444+00:00 app[web.1]: PG::UndefinedTable: ERROR: relation "items" does not exist 2016-11-10T13:59:10.049445+00:00 app[web.1]: LINE 1: SELECT "items".* FROM "items" ORDER BY "items"."rank" DESC 2016-11-10T13:59:10.049446+00:00 app[web.1]: ^ 2016-11-10T13:59:10.049446+00:00 app[web.1]: : SELECT "items".* FROM "items" ORDER BY "items"."rank" DESC 2016-11-10T13:59:10.049571+00:00 app[web.1]: Completed 500 Internal Server Error in 2ms 2016-11-10T13:59:10.050306+00:00 app[web.1]: 2016-11-10T13:59:10.050307+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "items" does not exist 2016-11-10T13:59:10.050308+00:00 app[web.1]: LINE 1: SELECT "items".* FROM "items" ORDER BY "items"."rank" DESC 2016-11-10T13:59:10.050308+00:00 app[web.1]: ^ 2016-11-10T13:59:10.050309+00:00 app[web.1]: : SELECT "items".* FROM "items" ORDER BY "items"."rank" DESC): 2016-11-10T13:59:10.050309+00:00 app[web.1]: app/controllers/items_controller.rb:10:in index'
2016-11-10T13:59:10.050309+00:00 app[web.1]:`

Deploy to Heroku doesn't work, name too long

Get following error when attempting to deploy to Heroku:

The content of app.json is not a valid JSON object.

name: is too long (maximum is 30 characters)
repository: is not a valid url

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.