HackBerkeley / habitat

Hackers@Berkeley's apps to help people hack better!
2 stars 5 forks source link

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)