Skip to content

agoraspeakers/asi-portal

Repository files navigation

ASI Portal

Prototype for Agora Speakers International Portal.

Code / Issues

https://github.com/agoraspeakers/asi-portal

Requirements

This project is build with Ruby and Ruby on Rails.

Usual installation path requires:

  1. install MySQL/MariaDB
  2. install JavaScript engine like nodejs
  3. install ruby
  4. install bundler: gem install bundler
  5. install project dependencies: bundle install

Running project

  1. in database engine create user asi with password asi with rights to create databases
  2. run rails db:setup to initialize database (rails db:migrate to only update)
  3. in rails c create admin user: User.create(name: 'Michal Papis', email: 'mpapis@gmail.com', password: 'testtest', role: 'admin', address: 'Kossaka 3/4, Gorzów, Poland')
  4. run rails server to start the application
  5. open browser at http://localhost:3000

Deployment

  1. in database engine create user asi and database asi_portal_production

  2. copy config/deploy/production.rb to new file and point to your server

  3. copy config/environments/production.rb to file name from 1. - update content

  4. edit config/database.yml and config/secrets.yml - duplicate staging section with name from 1.

  5. commit and push git changes

  6. run cap new_server check - new_server is the file name from 1.

  7. on the server in shared/.env set up your environment variables from local .env.example

  8. deploy cap new_server deploy

  9. configure webserver to serve the site, eg:

    server {
      passenger_enabled on;
      rails_env production;
      root /home/user/apps/asi-portal/current/public;
    }

License

GNU Afero GPL

Contributions

  1. Discuss,
  2. Clone,
  3. Update,
  4. Open PR.

Before putting any effort into the project please discuss with other developers to avoid duplicate work or unnecessary efforts.