Ruby Rails application for JSON-API with ActiveRecord, RSpec
- Ruby 2.7.5
- PostgreSQL
- Clone poject
- Run bundler:
$ bundle install
- Copy database.yml:
$ cp config/database.yml.sample config/database.yml
- Create and migrate database:
$ bundle exec rails db:create
$ bundle exec rails db:migrate
- Populate the database:
$ bundle exec rails db:seed
- Run application:
$ rails server
To execute tests, run following commands:
$ bundle exec rake db:migrate RAILS_ENV=test #(the first time only)
$ bundle exec rspec
DDD Service-based app design with step-based operations
Stock API with 2 endpoints:
- GET
api/movies
- returns a list of available movies with related data - GET
api/actors
- returns a list of available actors. With the param/?name=<actor-name>
searches matched actors
The software is available as open source under the terms of the MIT License.