Skip to content

CSS-Minsk-JS/big-web-quiz

 
 

Repository files navigation

The repo is a fork from Big Web Quiz

Development && Deploy

Prerequisites

  • Node >= 6.7.0
  • Docker >= 1.12.1

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

And don't forget to run mongodb

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 [email protected]
# 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.

Packages

No packages published

Languages

  • JavaScript 72.0%
  • CSS 27.2%
  • HTML 0.8%