Skip to content

kurtbradd/deltahacks-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

McMaster Deltahacks Registration System

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published