About this Project: RailsEngine is a versioned, ReSTful, JSON API for sales data. It exposes record, relationship, and business intelligence endpoints for various sales-related resources.
This solo project was build for Mod3 of Turing School of Software and Design's Back-End Program.
Project premise: You are working for a company developing an E-Commerce Application. Your team is working in a service-oriented architecture, meaning the front and back ends of this application are separate and communicate via APIs. Your job is to expose the data that powers the site through an API that the front end will consume.
RailsDriver is an example (provided by Turing instructors) for how this RailsEngine API could be consumed.
*_Explore a similar project I completed for my third quarter final at Turing here_
git clone git@github.com:rrabinovitch/rails_engine_rr.git
bundle install
rake db:{create, migrate}
rake seed_from_csv:all
git clone git@github.com:rrabinovitch/rails_driver.git
bundle install
rake db:{create, migrate}
figaro install
config/application.yml
file that this last command created, add the key-value pair RAILS_ENGINE_DOMAIN: http://localhost:3000
bundle exec rspec
from within the RailsDriver directoryrails s
bundle exec rspec
You can see this API in action through the front-end RailsDriver application, Postman, or in your browser.
rails
rails s - 3001
localhost:3001
and explore!rails s
localhost:3000/api/v1
GET /items
• GET /merchants
• GET /merchants/most_revenue?quantity=7
rails s