-
Software requirements:
- nodejs
- npm
- Note: Both can be installed from (http://nodejs.org/download/)
- Note: If you are using Ubuntu package manager we recommend to use Chris Lea package:
sudo apt-get install make g++ sudo apt-get install software-properties-common python-software-properties sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs
- Clone Quiz repository:
git clone https://github.com/aalonsog/quiz-2015.git
- Install the dependencies:
cd quiz-2015/ npm install
-
Configure the ENV variable for the database depending on the one you want to use
- Postgres: DATABASE_URL=postgres://user:passwd@host:port/database
- SQLite: DATABASE_URL=sqlite://:@:/
-
Configure the ENV variable for encripting the passwords
PASSWORD_ENCRYPTION_KEY=topsecret
npm start
This command runs the server in port 3000. You can connect to this port using a web browser.