Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```