This repo is using Rails 7, so you'll need at least Ruby 2.7+, though Ruby 3.0+ is recommended. (installation guide)
You will need yarn
in order to install JavaScript dependencies. (installation guide)
You will need bundle
in order to install Ruby dependencies. (installation guide)
You will need foreman
in order to run the development server. (installation guide)
bundle
yarn
rails db:create
bin/dev
This repo is a default Rails 7 application. All that has been done is setup for user accounts via Devise, react-rails via esbuild, and scaffolding for the Quote
model.
Customers are represented by the user Devise model.
There are two carrier APIs available (Carriers R Us and The Shippers). You can see the API specs in the api-specs
folder. All requests to these APIs are mocked, please use one of these HTTP libraries to ensure mocking works. The mocks do not catch invalid requests (yet), so I'll let you know if you've made one.
If you would like to see visual documentation, you can load the spec files into Swagger Editor.
RSpec and Cuprite