Hackathon registration system built on Node, Express, Angular, MongoDB, Redis. Manages application and acceptance process. Secured via JSON Web Tokens (JWT).
- Node.js (v0.10.34)
- MongoDB (v2.6.6)
- Redis (v2.8.19)
To run application, follow these steps.
- Create 'secrets.js' in /config directory
module.exports = {
mongo: {
url: 'mongodb://yourhost:port/dbName',
host: 'yourhost',
port: 'port',
db: 'dbName',
password: 'CREATE SOME PASSWORD HERE',
options: {
db: {safe:true}
}
},
redis:{
url: 'redis://yourhost:port/yourDBNumber',
host: 'yourhost',
port: 'port',
db: 'yourDBNumber', //ex. '0', redis doesnt use named dbs
password: 'CREATE SOME PASSWORD HERE'
},
sessionSecret: 'SOMELONGSESSIONSECRETHEREFORJWT'
}
- Install NPM project dependencies
$ cd deltahacks
$ sudo npm install
- Install nodemon globally via NPM to watch for file changes
$ sudo npm install nodemon -g
- Start MongoDB and Redis with respective config from secrets.js
$ sudo service mongod start
$ sudo service redis-server start
- Start deltahacks Node application
$ npm start