Skip to content
crowdsourcing mobile application to rank ideas to create policy sets using network analysis
Branch: master
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.
bin
config
public
server
.DS_Store
.eslintignore
.eslintrc.json
.gitignore
README.md
package-lock.json
package.json

README.md

Aperire

Crowdsourcing mobile web application to rank ideas to create policy sets using network analysis. Aperire is a latin work for "to open", which is the vision of this software - to open policy making to the public.

Requirements

  • node v8+
  • Mysql

Installing

Download the code or use git:

git clone git@github.com:dortheimer/aperire.git

cd aperire
npm install

create a local configuration file and edit the required fields:

cp config/default.json config/local.json
vi config config/local.json

Create a Mysql database:

 mysql -uusername -p
mysql> create database aperire;

Run the schema building script

node bin/init_db

Run the server using:

node bin/aperire

Running in production

For production it is recommended running it with pm2 and Apache.

npm -g install pm2
pm2 start bin/aperire 

Install Apache and then configure it:

sudo vi /etc/apache2/sites-available/aperire.conf
<VirtualHost *:80>
    ServerAdmin you@domain.org
    ServerName aperire.domain.org

    ProxyRequests off
    ProxyPreserveHost On
    ProxyVia Full
    <Proxy *>
        Order deny,allow
        Allow from all
    </Proxy>

    <Location />
        ProxyPass http://localhost:3000/
        ProxyPassReverse http://localhost:3000/
    </Location>

</VirtualHost>

Activate the new virtual host:

sudo a2ensite aperire.conf 
sudo apachectl restart

Running for development

For development run it with npm and nodemon:

npm start

License

This is open-source software under the MIT license. I'd be glad to ge an email if you use Aperire.

You can’t perform that action at this time.