Skip to content

I used Rails and ActiveRecord to build a JSON API, which exposes the SalesEngine data schema. I also learned how to to build Single-Responsibility controllers to provide a well-designed and versioned API, how to use controller tests to drive my design, and used Ruby and ActiveRecord to perform more complicated business intelligence.

Notifications You must be signed in to change notification settings

djc00p/Rales_Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rails Engine

By Deonte Cooper

Objective

I used Rails and ActiveRecord to build a JSON API, which exposes the SalesEngine data schema. I also learned how to to build Single-Responsibility controllers to provide a well-designed and versioned API, how to use controller tests to drive my design, and used Ruby and ActiveRecord to perform more complicated business intelligence. This is a solo student project from Turing School of Software & Design as part of the Module 3 backend engineering curriculum. The purpose of this project was to take CSV file data from an ecommerce site and use Rails and ActiveRecord to build a JSON API which exposes the data schema. View the original assignment here

Learning Goals

  • Learn how to to build Single-Responsibility controllers to provide a well-designed and versioned API.
  • Learn how to use controller tests to drive your design.
  • Use Ruby and ActiveRecord to perform more complicated business intelligence.
  • API will be compliant to the JSON API spec. Documentation

Built With

Installing

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

  • From your terminal, clone the repo: git clone git@github.com:djc00p/Rales_Engine.git
  • If you do not have PostgreSQL, follow the steps to setup PostgreSQL here
  • Move to the new project directory: cd sales_engine
  • Install required gems by running: bundle exec install
  • Setup the database by running: rake db:{create,migrate}
  • Seed the database with CSV data with: rake import:all

Testing

RSpec was used for testing. Test coverage was tracked with SimpleCov.

  • To run tests, from the root directory, run: bundle exec rspec

About

I used Rails and ActiveRecord to build a JSON API, which exposes the SalesEngine data schema. I also learned how to to build Single-Responsibility controllers to provide a well-designed and versioned API, how to use controller tests to drive my design, and used Ruby and ActiveRecord to perform more complicated business intelligence.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published