Skip to content

elmunoz42/hair-salon

Repository files navigation

Hair Salon

Customer Relationship Manager for Hair Salon.

By Carlos Munoz Kampff

Description

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.

Specifications

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"

Setup/Installation Requirements

Database Tables Creation steps:

  • 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);

Installation:

  • 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 _

Known Bugs

There are no known present at this time.

Support and contact details

No support.

Technologies Used

  • PHP
  • Silex
  • MySQL

License

MIT

Copyright (c) 2017 Carlos Munoz Kampff

About

PHP, Week3, Fri Independent Code Review: Web app that integrates with mySQL database using CRUD routing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published