This is an app for a hair salon. The owner should be able to add a list of the stylists, and for each stylist, add clients who see that stylist. The stylists work independently, so each client only belongs to a single stylist.
- A salon employee needs to be able to see a list of all our stylists.
- A salon employee needs to be able to select a stylist, see their details, and see a list of all clients that belong to that stylist.
- A salon employee needs to add new stylists to our system when they are hired.
- A salon employee needs to be able to add new clients to a specific stylist. I should not be able to add a client if no stylists have been added.
- A salon employee needs to be able to delete stylists (all and single).
- A salon employee needs to be able to delete clients (all and single).
- A salon employee needs to be able to view clients (all and single).
- A salon employee needs to be able to edit JUST the name of a stylist. (You can choose to allow employees to edit additional properties but it is not required.)
- A salon employee needs to be able to edit ALL of the information for a client.
- A salon employee needs to be able to add a specialty and view all specialties that have been added.
- A salon employee needs to be able to add a specialty to a stylist.
- A salon employee needs to be able to click on a specialty and see all of the stylists that have that specialty.
- A salon employee needs to see the stylist's specialties on the stylist's details page.
- A salon employee needs to be able to add a stylist to a specialty.
- Clone this repository:
$ git clone https://github.com/sn31/HairSalon.Solution
- Change into the work directory::
$ cd HairSalon.Solution
-
To edit the project, open the project in your preferred text editor.
-
To run the tests, move into the Test directory and run this command:
$ dotnet test
-
Open MAMP and hit Start Servers.
-
In the terminal, connect to MySql using your username and password.
$ /Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot
- In MySql, run these commands to create the database and add details:
> CREATE DATABASE hair_salon;
> USE hair_salon;
> CREATE TABLE stylists (id serial PRIMARY KEY, name VARCHAR(255));
> CREATE TABLE clients ( `id` INT(32) NOT NULL AUTO_INCREMENT , `name` VARCHAR(255) NOT NULL , `stylist_id` INT(32) NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB;
- Repeat step 3 to make a hair_salon_test table.
- When adding a new stylist from the Specialties page, receives the error below:
Column 'name' cannot be null
Please contact us at skye@dames.es for more information and/or feedback.
- C# FixFormat 0.0.71
- C#/.Net Core 1.1
- MySql
- MAMP
- Git
- GitHub