/earthquake-croatia

Code for app hosted on https://potres.herokuapp.com used for helping people in need during the earthquake crisis in Croatia

Primary LanguageRuby

Potres-app

How to contribute

If you want to contribute, please check out our issues tab, see if anything is approved and comment on that issue so we know someone is working on it. If you have a recommendation - please raise a new issue, tag it accordingly with enhancment and bug labels.

Things to keep in mind

We need the UI to be responsive since this app is heavily used on mobile phones.

Environment setup

Install Ruby

# Install gnupg
brew install gnupg

# Add rvm gpg key
gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB

# Pull latest rvm
\curl -sSL https://get.rvm.io | bash -s stable --ruby

# Install ruby 2.7.1
rvm install ruby-2.7.1

# Activate environment
source /Users/bvunder/.rvm/scripts/rvm

Install dependencies

# On OSX install postgres and run server
brew install postgresql
brew services start postgresql

# Install dependencies
bundle install

# Initialize and migrate database
rails db:create
rails db:migrate

# Install webpack
rails webpacker:install

Run server locally

rails s