Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A website you join via pull request.
JavaScript CSS HTML Shell
Branch: master

Merge pull request #362 from kanakiyajay/patch-1

Update to include kanakiyajay
latest commit 2ba259dde9
@megamattron megamattron authored
Failed to load latest commit information.
_Design Assets/Logo.sketch Losslessly reduce PNG files, reducing project size by 39KiB. Add myse…
components fixed tab space issue
config Merge pull request #362 from kanakiyajay/patch-1
controllers don't send an email to the poster of the comment
models Merge pull request #334 from cgroner/feat-vote-counts
public Cut down on margin
tasks added db-seed - fixes #224
test Add vote count field to NewsItem, Issue and Comment models.
utils send notifications to users when they are mentioned on pullup
vagrant limit ansible apt-get updates to only once per 24 hours
views Move discussions and homepage to feature branch
.gitignore use forever to keep node process running
.travis.yml Merge pull request #364 from PeterDaveHello/patch-2
CONTRIBUTING.md minor textual tweaks
Gruntfile.js added db-seed - fixes #224
LICENSE Add license. Related to #108.
Procfile use forever to keep node process running
Procfile.local use forever to keep node process running
README.md Merge branch 'master' into feature-mentions
Vagrantfile Adding a script to run Ansible within the guest machine when running …
app.js Move discussions and homepage to feature branch
cluster_app.js Create cluster_app.js to enable simple process forking; readme addition
constants.js GitHub contributions count added to news index page
forever.js use forever to keep node process running
gulpfile.js Remove unused module.
hackathon-starter-readme.md Project readme.
package.json Trying alternative dependency format. Related to #370.

README.md

PullUp Build Status Code Climate Gitter chat

A website you join via pull request. See it live at http://pullup.io

What would it be like if every user of a site had contributed some code? Let's find out! Right now the site is little more than a terrible Hacker News type thing, but let's see if it can grow into something more.

How to join

Summary:

  • Fork and set up project for development (see below)
  • Add your GitHub username to the authorized users list.
  • Add a feature, fix a bug, improve the design, etc.
  • Submit a pull request! When we merge, you'll be allowed to log in.

Development Setup

Prerequisites: Node.js and MongoDB.

First, register a new developer application on GitHub. Set the Homepage URL to your development server (example: http://localhost:3000) and set your Authorization callback URL to http://localhost:3000/auth/github/callback. Take note of the Client ID and Client Secret, as you will need them in the next steps.

# Fetch only the latest commits.
git clone git@github.com:larvalabs/pullup.git

cd pullup

# Install NPM dependencies
npm install
npm install -g gulp

# Set the following environment variables:

export GITHUB_CLIENTID='CLIENTID'
export GITHUB_SECRET='SECRET'

# Or, on Windows...

SET GITHUB_CLIENTID=CLIENTID
SET GITHUB_SECRET=SECRET

Once those are set you can run the local development version:

node app.js

Or start the app with foreman:

foreman start -f Procfile.local

And perform build tasks and linting with:

gulp

You can find out more technical details in the Readme for Hackathon Starter.

Seeding The Database

Firstly make sure you have installed grunt-cli globally.

npm install -g grunt-cli

Once this has installed you can seed the database by running the following grunt task.

grunt db-seed

You may also wish to completely clear down the database, you can do so by running the db-clear task.

grunt db-clear

Pullup Dev Community

We hang out on Gitter

Using the Vagrant-based Development Environment

You'll need VirtualBox, Vagrant, and Ansible installed to use this environment.

Note: Windows users do not need Ansible installed. (A script will run and install Ansible on the guest machine for you)

Update the GitHub environment variables in vagrant/tasks/setup_app.yml

Fire up the Vagrant VM:

vagrant up

Ensure Ansible has run successfully and provisioned the boxes. If not, try again using vagrant provision

Then, ssh in and follow the installation steps:

vagrant ssh
cd /vagrant/
npm install
node app.js

Vagrant Development on a Windows Host

Windows lacks support for symlinks in synced folders. Use npm install --no-bin-links instead of npm install when installing.

Credits

This project is based on the awesome Hackathon Starter project. Thanks @sahat!

Something went wrong with that request. Please try again.