Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Hackers@Berkeley's apps to help people hack better!
JavaScript Ruby
Branch: master
Pull request Compare This branch is 75 commits ahead of nelsonz:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
public
views
.gitignore
Procfile
README.md
migrate.js
migrate.rb
models.js
package.json
server.js

README.md

h@bitat

Infrastructure for Hackers@Berkeley.

Quick start

git clone https://github.com/HackBerkeley/habitat

npm install

node server.js

Dependencies

Install dependencies listed in package.json with

npm install

If you need to add modules to the project, run

npm install --save

If you run this locally, you can install mongodb on your local machine. If you are on Ubuntu/Mint, follow this guide: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

Make sure your mongodb service has started with

sudo service mongodb start

Run

Run the app with node server.js for the app use a remote mongo database and your local url.

or use node server.js local to use a local mongo instance (name it hackerfair)

or node server.js production to use a remote mongo database and the heroku url (note this is really only useful when run in heroku)

if you want to run on a port different from the default value of 8000, use node server.js default <port> to specify the port number.

To deploy to heroku, run:

git remote add heroku git@heroku.com:gentle-hollows-2295

If this fails, ask Nelson for access. Push to heroku with:

git push heroku master

(work on a separate branch and push when you're confident in your changes.)

Note: If you pulled this earlier, make sure to run npm update (we ported to express 3)

Something went wrong with that request. Please try again.