1
0
Fork 0
A web application to manage political party
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
2019-07-16 03:25:59 +05:00
app Display person comments 2019-07-16 03:25:59 +05:00
bin Add "script/setup" 2019-04-27 17:13:44 +05:00
config Display person comments 2019-07-16 03:25:59 +05:00
db Add model PersonComment 2019-07-16 02:19:11 +05:00
factories Add model PersonComment 2019-07-16 02:19:11 +05:00
features Fix code style 2019-06-23 21:07:51 +05:00
fixtures Add fixtures 2018-11-30 08:20:12 +05:00
lib Remove unnecessary Capistrano tasks 2019-01-31 06:14:30 +05:00
log Initialize Rails application 2018-11-23 00:33:08 +05:00
public Remove old content 2018-12-05 23:08:07 +05:00
script Fix CI 2019-04-27 17:48:58 +05:00
spec Display person comments 2019-07-16 03:25:59 +05:00
storage Initialize Rails application 2018-11-23 00:33:08 +05:00
tmp Initialize Rails application 2018-11-23 00:33:08 +05:00
vendor Initialize Rails application 2018-11-23 00:33:08 +05:00
.gitignore Add YARD 2018-12-03 17:51:04 +05:00
.rubocop.yml Drop table membership_apps 2019-05-03 12:52:01 +05:00
.ruby-gemset Some fixes 2018-11-23 00:35:04 +05:00
.ruby-version Update Ruby 2019-04-27 16:27:20 +05:00
.simplecov Revert "Set minimum coverage" 2019-07-16 02:44:47 +05:00
.travis.yml Fix CI 2019-04-27 17:48:58 +05:00
.yardopts Add YARD 2018-12-03 17:51:04 +05:00
Capfile Remove NPM 2019-01-31 06:42:24 +05:00
config.ru Add frozen string literal comments 2018-11-23 00:58:35 +05:00
Gemfile Fix Omniauth CSRF (CVE-2015-9284) 2019-07-08 19:13:25 +05:00
Gemfile.lock Upgrade gems 2019-07-08 19:39:54 +05:00
LICENSE Add license 2018-11-29 17:49:45 +05:00
package.json Remove image viewer 2019-07-08 17:32:17 +05:00
Rakefile Ignore CVE-2015-9284 2019-07-16 02:31:00 +05:00
README.md Remove unnecessary documentation 2019-07-16 01:08:09 +05:00
yarn.lock Remove image viewer 2019-07-08 17:32:17 +05:00

Partynest

Build Status Coverage Status Maintainability Inline docs

A web application to manage political party members and supporters.

Project name comes from Russian "партийное гнёздышко".

Table of contents

Deploy

Tested with Ubuntu Server 18.04 LTS.

System packages

  • build-essential
  • gnupg2
  • liblzma-dev
  • libpq-dev
  • patch
  • zlib1g-dev

Ruby installation

Install Ruby system-wide with RVM:

gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | sudo bash -s stable

Replace user with the name of your current user:

sudo usermod -a -G rvm user

Log out from system, then log in again. Install Ruby and Bundler:

rvm install ruby-2.6.2
rvm use ruby-2.6.2
gem install bundler

Node.js and Yarn installation

Node.js will be installed from system packages as Yarn dependency:

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn

Steps

  • Create directory /opt/partynest/ writable by deploy user
  • Copy file config/master.key to /opt/partynest/shared/config/
  • Create PostgreSQL role partynest with password password
  • Create PostgreSQL database partynest_production owned by partynest