- Install NodeJS and MongoDB.
- Start the Mongo server by opening a new terminal and typing
mongod
. - Clone the repo by opening another new terminal, and typing
git clone https://github.com/carlhacks/website.git
. - Change into the new repo's directory with
cd website
. - Install dependencies with
npm install
. - Then do
npm install stylus
. - Then do
touch api_keys.js
. - Start the Node server with
npm start
. - Visit http://localhost:8080 to see the site!
- Get the RSA keys and deploy scripts from Adam or Ken, and drop them in the project directory. There should be 3:
carlhacks_rsa
,carlhacks_rsa.pub
, andcarlhacks_publish
. - Make sure they permissions are set correctly on the new files with
chmod 600 carlhacks_*
- Make sure you're using Github with SSH keys
- Make sure your checking out this repo with SSH. Type
git remote -v
in the repo. If you don't see twoorigin
listings that start withgit@github.com
, you'll need to change your origin to SSH withgit remote set-url origin git@github.com:carlhacks/website.git
. Make suregit push
andgit pull
still work after doing this — if they don't you probably didn't set up your SSH keys correctly.
Once you're done with the deploy setup above, just type ./carlhacks_publish
while in the repo's directory.
mongoexport --db carlhacks --collection users --csv --fieldFile userfields.txt --out ./applicants.csv