Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moviendome/trailblazer-api
Simple example of REST API built with Ruby on Rails & Trailblazer
https://github.com/moviendome/trailblazer-api
docker minitest rails rails-api rest-api ruby trailblazer
Last synced: 17 days ago
JSON representation
Simple example of REST API built with Ruby on Rails & Trailblazer
- Host: GitHub
- URL: https://github.com/moviendome/trailblazer-api
- Owner: moviendome
- Created: 2019-07-06T10:17:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T14:22:49.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T01:30:34.623Z (about 1 month ago)
- Topics: docker, minitest, rails, rails-api, rest-api, ruby, trailblazer
- Language: Ruby
- Homepage:
- Size: 61.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Trailblazer API
[![CircleCI](https://circleci.com/gh/jferrer/trailblazer-api/tree/master.svg?style=svg)](https://circleci.com/gh/jferrer/trailblazer-api/tree/master)> Simple example of REST API built with Ruby on Rails & Trailblazer
### Starting the application
```bash
docker-compose up
```### Migrating
```bash
docker-compose run api bin/rails db:migrate
```### Testing
```bash
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
```bash
docker-compose down
rm -r docker/data-volume
docker-compose up db
# CTRL+C to shut down
docker-compose up
```