___ ___ ___ ___ ___ ___ /__/\ / /\ /__/| / /\ / /\ /__/\ \ \:\ / /::\ | |:| / /:/_ / /::\ \ \:\ \__\:\ / /:/\:\ | |:| / /:/ /\ / /:/\:\ \ \:\ ___ / /::\ / /:/~/::\ __| |:| / /:/ /:/_ / /:/~/:/ ___ \ \:\ /__/\ /:/\:\ /__/:/ /:/\:\ /__/\_|:|____ /__/:/ /:/ /\ /__/:/ /:/___ /__/\ \__\:\ \ \:\/:/__\/ \ \:\/:/__\/ \ \:\/:::::/ \ \:\/:/ /:/ \ \:\/:::::/ \ \:\ / /:/ \ \::/ \ \::/ \ \::/~~~~ \ \::/ /:/ \ \::/~~~~ \ \:\ /:/ \ \:\ \ \:\ \ \:\ \ \:\/:/ \ \:\ \ \:\/:/ \ \:\ \ \:\ \ \:\ \ \::/ \ \:\ \ \::/ \__\/ \__\/ \__\/ \__\/ \__\/ \__\/
##tldr;
install mongo and run mongod
, then
git clone git@github.com:DTrejo/hakeru.git
cd hakeru/
npm install
sudo node server.js
Clone this repository using like this*: git clone git@github.com:DTrejo/hakeru.git
make sure you have "mongodb installed":http://www.mongodb.org/downloads, or just "sudo port install mongodb." Make sure you follow the "quickstart guide":http://www.mongodb.org/display/DOCS/Quickstart for your OS. For mac you'd run:
mkdir -p /data/db
Also get the node code install npm, or install it along with node:
cd hakeru/
npm install
cd hakeru/
mongod
sudo node server.js
the server should now be running at http://localhost/ all done! Develop to your heart's content.
- registration
- upload
- clean up the existing code, especially in the chatserver. indentation, variable naming, classes in different files.
- make url routing more robust. Use a routing module?
- server dies if mongod not running — add a try-catch and display something helpful, like could not connect to DB. This way already-running rooms will stay up even if server dies.
- √ demo room: "eric.no.de/demo":http://eric.no.de/demo
- √ sessions
- √ eric.no.de/* url routing works
- √ chat rooms work
- √ html5 notifications work
I'm missing a module!
- Do a ctrl-f
npm
and make sure you've installed everything in this guide
I have an error!
- email david or call him, make sure to have the stack trace on hand
install mongo
run mongo with --dbpath option, so no root needed
symlink to latest node or use config.json with correct node version
install specific npm packages needed by the code.
ugh annoying.