Mark and Seth's Rales Engine, our first project of Module 3 for Turing. This project imports business data and host an API. The API has record endpoints, relationship endpoints (relationships between models) and business intelligence, all of which is rendered as JSON.
Things you may want to cover:
-
Ruby version: 2.3.0
-
System dependencies: PostgreSQL and data from sales engine
-
Configuration: In your terminal follows these steps to clone the project to your machine, create the database, and import the data.
cdinto the directory you want to hold this project.- run
git clone git@github.com:themenintights/rales_engine.git cd rales_enginebundle installto install the required gems for this project.rake db:createto create the database.rake db:importto import the sales data.
-
RSpec Test suite In your terminal follow these steps to run the test suite
rspecto run the test suite
-
Hosting the site on your local machine
- To start the server locally, run
rails serverfrom with therales_enginedirectory. - In your browser, visit your locally hosted api
http://localhost:3000 - To explore endpoints you can view, visit
http://localhost:3000/rails/info/routes - To shutdown the server, press
ctrl-cin your terminal.
- To start the server locally, run
-
Spec Harness To run the spec harness provided for this project follow these steps in your terminal.
- Start the server locally by running
rails serverfrom with therales_enginedirectory. - Open a new tab in your terminal
- In this new terminal tab run
git clone github.com/turingschool/rales_engine_spec_harness.git cd rales_engine_spec_harness- Run
bundle install - Run
raketo run the spec harness against this project.
- Start the server locally by running