Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

DTrejo/hakeru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

      ___           ___           ___           ___           ___           ___
     /__/\         /  /\         /__/|         /  /\         /  /\         /__/\
     \  \:\       /  /::\       |  |:|        /  /:/_       /  /::\        \  \:\
      \__\:\     /  /:/\:\      |  |:|       /  /:/ /\     /  /:/\:\        \  \:\
  ___ /  /::\   /  /:/~/::\   __|  |:|      /  /:/ /:/_   /  /:/~/:/    ___  \  \:\
 /__/\  /:/\:\ /__/:/ /:/\:\ /__/\_|:|____ /__/:/ /:/ /\ /__/:/ /:/___ /__/\  \__\:\
 \  \:\/:/__\/ \  \:\/:/__\/ \  \:\/:::::/ \  \:\/:/ /:/ \  \:\/:::::/ \  \:\ /  /:/
  \  \::/       \  \::/       \  \::/~~~~   \  \::/ /:/   \  \::/~~~~   \  \:\  /:/
   \  \:\        \  \:\        \  \:\        \  \:\/:/     \  \:\        \  \:\/:/
    \  \:\        \  \:\        \  \:\        \  \::/       \  \:\        \  \::/
     \__\/         \__\/         \__\/         \__\/         \__\/         \__\/

##tldr;

install mongo and run mongod, then

git clone git@github.com:DTrejo/hakeru.git
cd hakeru/
npm install
sudo node server.js

How to get the dev server running! (does not yet fully duplicate production, but in any case):

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

Now that you have all the dependencies, you should be able to start up the server:

cd hakeru/
mongod
sudo node server.js

the server should now be running at http://localhost/ all done! Develop to your heart's content.

Things that need attention:

  • 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

troubleshooting

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

installation on no.de

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.

About

realtime chat with tasks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published