Skip to content

NoahZinter/black_thursday

 
 

Repository files navigation

Black Thursday

A hand-rolled Ruby simulation of a sales platform database, including business intelligence and CRUD functionality.

4-person group project completed over 10 days.


Black Thursday Schema: Black Thursday Schema


The project has no dependencies, and can be cloned and run as-is. There is no front-end for this project, so the best way to get a sense of what it is doing is to explore the specs and run rspec to verify the functionality. The flow of the project is as follows:

Data is loaded from six CSV files in the '/data' directory. The FileIo class instantiates objects corresponding to that data into six models, Merchant, Item, InvoiceItem, Invoice, Transaction, and Customer (see db diagram). To handle aggregation of these models, each model has a corresponding Repository class. These models and respositories are loaded into a SalesEngine class, which is essentially a handmade replication of a SQL database. The SalesAnalyst class performs calculations based on the relationships between these data, acting very much like a hand-rolled Object-Relational Mapper.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 88.4%
  • Ruby 11.6%