psantos10 / sos

4 stars 0 forks source link
angola covid-19 opensource rails react ruby sos

SOS Angola

https://sos.ao

Requirements

Software Version Description
Ruby 2.7.1 Ruby Programming Language
PostgreSQL 12.x or higher Relational Database System
Nodejs Latest LTS version JavaScript Runtime
Yarn 1.22.x or < 2 Javascript Package Manager

Install Dependencies

Backend

$ bundle install

Frontend

$ yarn install

Setup Database

SOS Angola project uses PostgreSQL as a relational database system. After install PostgreSQL locally, you can create database and tables structures as follows.

Start creating the database (First time):

$ bundle exec rails db:create

Run all pending migrations:

$ bundle exec rails db:migrate

Running the application locally

You need to setup a local hostnames that points to 127.0.0.1.

sos.local -> 127.0.0.1
app.sos.local -> 127.0.0.1
api.sos.local -> 127.0.0.1

Backend

$ bundle exec rails s -b 0.0.0.0

Frontend

$ bin/webpack-dev-server

Running test suite and Linters

Backend

$ bundle exec rspec

$ bundle exec rubocop

Frontend

Contributing / Participation

Contibutions are welcome!

Note please that following is strongly requested: