This is an example application moving from working on rails monolith applications to a hexagonal architecture.
Is build with Sinatra, Sequel, SQLite, Bunny, Thin, Mailcatcher and RSpec for the testing.
This application assume you have RabbitMQ install in your computer.
brew install rabbitmqbundle installgem install thingem install mailcatchermailcatcher-- to start mailcatcher on http://127.0.0.1:1080/ruby mailers/new_player_mailer.rb-- to start mailer service
sequel -m db/migrations sqlite://player_management.db
shotgun --port=3000 server.rb
- 'GET /teams'
- 'POST /teams'
- 'GET /teams/:id'
- 'PATCH /teams/:id'
- 'DELETE /teams/:id'
- 'GET /teams/:id/players'
- 'GET /teams/:id/players?position=POSITION'
- 'GET ‘/players'
- 'GET /players?position=POSITION'
- 'POST /teams/:team_id/players'
- 'GET /teams/:team_id/players?position=POSITION'
- 'GET ‘/players/:id'
- 'PATCH /teams/:team_id/players/:id'
- 'DELETE /players/:id'