Skip to content

sn31/HairSalon.Solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hair Salon - Skye Nguyen

Epicodus Independent Project C# Week 3 & 4 - 09/21/2018.

Description

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.

Behavior-driven Development

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

Setup/Installation Requirements

  1. Clone this repository:
    $ git clone https://github.com/sn31/HairSalon.Solution
  1. Change into the work directory::
    $ cd HairSalon.Solution
  1. To edit the project, open the project in your preferred text editor.

  2. To run the tests, move into the Test directory and run this command:

    $ dotnet test

Re-creating MySql Database on Mac

  1. Open MAMP and hit Start Servers.

  2. In the terminal, connect to MySql using your username and password.

    $ /Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot
  1. 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;
    
  1. Repeat step 3 to make a hair_salon_test table.

Known Bugs

  • When adding a new stylist from the Specialties page, receives the error below:
Column 'name' cannot be null

Support and contact details

Please contact us at skye@dames.es for more information and/or feedback.

Technologies Used

  • C# FixFormat 0.0.71
  • C#/.Net Core 1.1
  • MySql
  • MAMP
  • Git
  • GitHub

License: MIT.

Copyright (c) 2018 Skye Nguyen

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published