/hair_salon

A ruby application to manage hair salon

Primary LanguageRubyMIT LicenseMIT

Hair Salon Management

A ruby application to manage hair salon stylists and clients.

by: kitet

Technologies used

Ruby RSpec Sinatra Postgres Materialize(for styling)

Running the project

  1. CLone the repo: $ git clone

  2. Install dependencies: $ bundle

  3. Install Postgres

  4. 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;
  1. Run the app: $ ruby app.rb

  2. Navigate to http://localhost:4567/

Use $ rspec to run tests.

LICENSE

MIT LICENSE