Home

Awesome

Prerequisites

And server/settings.js should look like:

export const cookieSecret = '';

// Google oauth
export const clientId = '';
export const clientSecret = '';
export const redirectOrigin = '';

…but with the correct values.

To install

npm install # or yarn
npm run install-mongo

To run

npm run serve

Dokku setup

  1. Install Dokku
  2. Use vhosts, then:
sudo dokku plugin:install https://github.com/dokku/dokku-mongo.git mongo
sudo dokku plugin:install https://github.com/dokku/dokku-letsencrypt.git
sudo dokku apps:create big-web-quiz
sudo dokku mongo:create big-web-quiz
sudo dokku mongo:link big-web-quiz big-web-quiz
sudo dokku domains:add big-web-quiz bigwebquiz.com
sudo dokku domains:remove big-web-quiz big-web-quiz.bigwebquiz.com
sudo dokku config:set --no-restart big-web-quiz DOKKU_LETSENCRYPT_EMAIL=jaffathecake@gmail.com
# then push the app (yarn run deploy), then:
sudo dokku letsencrypt big-web-quiz
sudo dokku letsencrypt:cron-job --add

Then up the connection limits in /etc/nginx/nginx.conf.

worker_rlimit_nofile 90000;

events {
        worker_connections 90000;
        # multi_accept on;
}

…then restart nginx.