/hackathon-democracy

A MEAN web application to vote on hackathon entries.

Primary LanguageJavaScript

Democracy

for hackathons

Getting Started

  • Clone the application from the git repository
  • Install mongodb sudo apt-get install mongodb
  • Install node sudo apt-get install nodejs
  • Install grunt-cli npm install -g grunt-cli
  • Install bower npm install -g bower
  • Install npm dependencies npm install
  • Install bower dependencies bower install
  • Run the server node server

Configuration

Configuration is stored in a file called config.json at the root of the application. This is the list of parameters:

  • mongo_url: The URL of the mongo database (default 'mongodb://localhost/test')
  • cookie_secret: The session cookie secret key (default 'not very secret')
  • smtp_service: nodemailer SMTP service value (options, default null)
  • smtp_user: the username for the SMTP service (default null)
  • smtp_password: the password for the SMTP service (default null)

Note that smtp_service and smtp_user settings must be configured for mailing voter registrations. If smtp_password is not configured, you will be prompted when you start the server.

In addition, the system can be started in development mode

grunt server

or in production mode

grunt server:dist

Troubleshooting

If you get the error connection error: [Error: failed to connect to [localhost:27017]] then the server cannot connect to mongo. Check that the server is started and accessible from the server's machine.