HackQ (or HackerHelpMe) is a web application allowing hackers to ask for help during hackathon events.
To install all "node_modules":
npm install
You may selectively uninstall node dependency. To do so:
npm uninstall [node_module_name]
Please refer to "package.json" for the list of node dependencies.
All CLI tools are installed when typing "npm install" as instructed above.
To install all CLI tools exclusively to Node dependencies above:
sudo sh ./bin/setup.sh install
To uninstall all node command line tools:
sudo sh ./bin/setup.sh uninstall
The following CLI tools are being installed:
npm:
gem:
You may run the Node.js server by typing:
npm start
However, during the development, the build step must be executed before the server starts. To do so:
sh ./bin/build.sh
You also need to manually start MongoDB server after build script above:
mongod --dbpath dbpath
Build step can also be refreshed upon changes by typing the following after the above step:
grunt watch
If you want to host your current development to the public before deployment, you may use ngrok script. After "npm start" command from above, type:
./bin/ngrok http 3000
This will generate temporary URL for public to see.
For the purpose of development, sample data can be loaded with following command while MongoDB server is running:
node ./samples/loadData.js
You may run Mocha unit test by typing:
npm test
npm install
to install all dependencies and CLI tools.