This repository contains a web app that helps barcamps with the registration of event attendees.
This app was developed during the organization of the Barcamp Graz 2015 in Austria.
You need NodeJS installed on your workstation:
Navigate into the project directory an run
npm install
This will install all necessary dependencies.
Make sure that you have MySQL installed and running.
Create a default.json in the config directory and fill it with the info found in config/default.json.example. Make sure to adjust the database connection according to your local environment.
{
"general": {
"Websitename": "Barcamp",
"mail_contact": "[email protected]"
},
"database": {
"host": "localhost",
"port": "5984",
"name": "your_db_name",
"username": "your_username",
"password": "your_password",
"options": {
"dialect": "mysql"
}
},
"database-version": "latest",
"fixtures-version": "latest",
"logger" : {
"clevel": "WARN",
"mlevel": "ERROR",
"appenders": [
{ "type": "console", "category": "console"},
{ "type": "file", "filename": "./barcamp.log", "category": "file" },
{ "type": "smtp", "recipients": "[email protected]", "sendinterval": "5", "sender": "[email protected]", "transport": "SMTP",
"SMTP": {
"host": "smtp.mailprovider.com",
"secureConnection": false,
"port": "587",
"auth": {
"user": "[email protected]",
"pass": "just2send"
},
"debug": false
},
"category": "mail"
}
],
"replaceConsole": true
}
"email": {
"smtpHost": "localhost",
"secureConnection": false,
"port": 25,
"sender": "[email protected]",
"subjectWelcome": "[BarCamp Graz] Anmeldung"
}
}
Also create a development.json file inside the config directory. Fill it with the info found in __config/development.json.example.
{
"logger" : {
"clevel": "DEBUG",
"mlevel": "WARN",
"appenders": [
{ "type": "console", "category": "console"},
{ "type": "file", "filename": "/home/user/Workspace/barcamp/barcamp.log", "category": "file" },
{ "type": "smtp", "recipients": "[email protected]", "sendinterval": "5", "sender": "[email protected]", "transport": "SMTP",
"SMTP": {
"host": "smtp.mailprovider.com",
"secureConnection": false,
"port": "587",
"auth": {
"user": "[email protected]",
"pass": "just2send"
},
"debug": true
},
"category": "mail"
}
],
"replaceConsole": true
},
"database-version": "latest"
}
Set the NODE_ENV variable in your shell environments:
export NODE_ENV=development
Start the server with
node barcamp-server.js
Author | Paul Rudolf Seebacher ([email protected]) |
Author | Jürgen Brüder ([email protected]) |