Skip to content

ibm-skills-network/sn_metrics

Rails Template

Development

Following the prereq of portals.

Install dependencies

Install Ruby dependencies

bundle install

Setup environment

cp .env.development.example .env.development
source .env.development

Database

Start database

docker compose up -d

This will create appropriate Docker volumes, container(s), and create the template PostgreSQL database.

Migration

This should only be used for a fresh database

bin/rails db:schema:load

Otherwise run the command below instead

bin/rails db:migrate

Run the dev server

rbenv shell 3.1.2
bin/dev

Then open http://localhost:3000

Merging

Prior to merging your branch ensure that it runs bundle exec rubocop clean