Skip to content

aalonsog/quiz-2015

Repository files navigation

quiz-2015

How to Build & Install

  • Software requirements:

    • nodejs
    • npm
	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

How to Start the server

npm start

This command runs the server in port 3000. You can connect to this port using a web browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published