Skip to content

Latest commit

 

History

History
55 lines (49 loc) · 1.31 KB

README.md

File metadata and controls

55 lines (49 loc) · 1.31 KB

DeltaHacks Backend

Hackathon registration system built on Node, Express, Angular, MongoDB, Redis. Manages application and acceptance process. Secured via JSON Web Tokens (JWT).

Dependencies

  1. Node.js (v0.10.34)
  2. MongoDB (v2.6.6)
  3. Redis (v2.8.19)

Running Project Locally

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