Skip to content
Simple example of REST API built with Ruby on Rails & Trailblazer
Ruby Other
  1. Ruby 99.6%
  2. Other 0.4%
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.
.circleci
app
bin
config
db
docker
lib/tasks
log
public
test
tmp
vendor
.gitignore
.rubocop.yml
.ruby-version
Dockerfile
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
config.ru
docker-compose.yml

README.md

Trailblazer API

CircleCI

Simple example of REST API built with Ruby on Rails & Trailblazer

Starting the application

docker-compose up

Migrating

docker-compose run api bin/rails db:migrate

Testing

docker-compose run api bin/rails db:test:prepare # If the test database is not created
docker-compose run api bin/rails test
docker-compose run api bin/rails test test/concepts  # run tests for Traiblazer Operations
docker-compose run api bin/rails test test/integration  # run Integration Tests

Database reset / re-seed

docker-compose down
rm -r docker/data-volume
docker-compose up db
# CTRL+C to shut down
docker-compose up
You can’t perform that action at this time.