A website meant for collecting feedback from competitors participating in Polish WCA competitions.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
deployment
lib
log
public
spec
tmp
vendor
.env.development
.env.test
.gitignore
.rspec
.ruby-version
.travis.yml
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
package.json
yarn.lock

README.md

PSS Surveys Build Status

A website meant for collecting feedback from competitors participating in Polish WCA competitions.

Getting started

Requirements: Ruby 2.4 and PostgreSQL 9.1.

  • Create PostgreSQL user for the application (use password as password): sudo -u postgres createuser -s pss_surveys --pwprompt
  • Clone the repository and cd into it: git clone https://github.com/jonatanklosko/pss_surveys.git && cd pss_surveys
  • Install third party dependencies: bundle install && bin/yarn
  • Create the database: bin/rails db:setup
  • Run the server: bin/rails server

Tests

Run all specs with bundle exec rspec.

Deployment

  • To set up full environment needed for the app to work run deployment/setup.sh
  • Fill .env.production template with appropriate environment variables.
  • Configure Nginx, see deployment/nginx_config.conf for initial configuration.
  • In order to set up free SSL certificate with Let's Encrypt run deployment/setup_ssl.sh.