A ruby application to manage hair salon stylists and clients.
by: kitet
Ruby
RSpec
Sinatra
Postgres
Materialize(for styling)
-
CLone the repo:
$ git clone
-
Install dependencies:
$ bundle
-
Install Postgres
-
Create production and test databases:
CREATE DATABASE hair_salon;
CREATE TABLE clients (id serial PRIMARY KEY, name varchar(20), phone varchar(20) stylist_id int);
CREATE TABLE stylists (id serial PRIMARY KEY, name varchar(20));
CREATE DATABASE hair_salon_test WITH TEMPLATE hair_salon;
-
Run the app:
$ ruby app.rb
-
Navigate to http://localhost:4567/
Use $ rspec
to run tests.