In this project you'll be using Ruby on Rails with Postgres to create a simple web UI to display data from a database.
Users for this site are called Players
who should get Offers
depending on their OffersTargets
.
- Ruby 2.6 installed.
- Postgres installed.
-
Install gems
bundle install
-
Create the database
- Run
psql
in Terminal orOpen psql
from the Postgres.app status menu. \du
CREATE USER dev;
CREATE DATABASE "take_home_rails_im_project_development" WITH OWNER dev;
CREATE DATABASE "take_home_rails_im_project_test" WITH OWNER dev;
\q
- Run
-
Initialize the database
- Create tables:
rake db:schema:load
- Populate your DB:
rails db:seed
- Create tables:
-
Run the Rails server :
rails s
-
Create a simple web table in a view called IM Offers
-
This table should have the following columns:
- Offer Description
- Offer Target age
- Offer Target gender
-
Create a second web table in the view for Players with the following columns:
- First Name
- Gender
- Age
-
Choosing a Player from the table should filter the Offers table according to the selected Player's age and gender.
For the views feel free to use any web development framework you are familiar with and feel comfortable using.
- Adding specs
- Enhance the web views
- Edit / Update Offers, Players etc
- Anything else you would want to show off your skills on :)
To submit your project please provide us with a Pull Request