- 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 -vin the repo. If you don't see twooriginlistings that start with[email protected], you'll need to change your origin to SSH withgit remote set-url origin [email protected]:carlhacks/website.git. Make suregit pushandgit pullstill 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