App that allows hair salon owners and managers to register stylists and clients, view their information, update the information, assign clients to a stylist and delete clients or stylists.
Behavior | Input example | Output example |
---|---|---|
1) User registers a new stylist. | "Fernanda" | "Joaquin", "Fernanda" clickable list. |
2) User retrieves a list of stylists. | click on stylists anchor | "Joaquin", "Fernanda" clickable list. |
3) User retrieves an individual stylist information. | click on "Fernanda" | name:"Fernanda",id:2 |
4) User updates a stylist's information. | in "Joaquin" page input new_name = "J-quin" | name:"J-Quin",id:1 |
5) User deletes all stylists. | click delete button | "No stylists registered." |
6) User deletes an individual stylists. | in "Fernanda" page click terminate-stylist | "Fernanda's file has been deleted." |
7) User registers a new client | "Fernanda" | "Joaquin", "Fernanda" clickable list. |
8) User retrieves list of clients. | click on client anchor | "Joaquin", "Fernanda" clickable list. |
9) User retrieves an individual client information. | click on "Fernanda" | name:"Fernanda", stylist: "Fred" id:2 |
10) User updates a client's information. | in "Joaquin" page input new_name = "J-quin" | name:"J-Quin", id:1 |
11) User deletes all clients. | click delete button | "No clients registered." |
12) User retrieves clients by their assigned stylist. | "Fred" | "Joaquin", "Fernanda" |
- mysql> CREATE DATABASE hair_salon;
- mysql> USE hair_salon;
- mysql> CREATE TABLE stylist (name VARCHAR(255), id serial PRIMARY KEY);
- mysql> CREATE TABLE client (name VARCHAR(255), stylist_id INT, id serial PRIMARY KEY);
- mysql> CREATE DATABASE hair_salon_test;
- mysql> USE hair_salon_test;
- mysql> CREATE TABLE stylist (name VARCHAR(255), id serial PRIMARY KEY);
- mysql> CREATE TABLE client (name VARCHAR(255), stylist_id INT, id serial PRIMARY KEY);
- unzip the hair_salon.sql.zip
- run MAMP and click start servers.
- Clone repository from github.
- In Terminal run: Install composer
- Initiate a php server in terminal within the web folder of the project.
- Open localhost:8000 in the browser of your choice.
_web browser and PHP 5 are necessary to operate this _
There are no known present at this time.
No support.
- PHP
- Silex
- MySQL
MIT
Copyright (c) 2017 Carlos Munoz Kampff