Hair Salon

By Cameron Abel

Suped up appointment book for Clair's Salon

Technologies Used

  • C#
  • ASP.Net Core MVC
  • Entity Framework Core
  • MySQL
  • JavaScript

Description

Demonstrates CRUD methods using the ASP.NET MVC and MySQL.

Setup/Installation Requirements

Database Installation

A sample database cameron_abel.sql file is provided with this repository. If using MySQL Workbench, simply import this file as a new schema.

  • Clone this repository to your local machine
  • Navigate to HairSalon.Solution\HairSalon
  • Create a new file called appSettings.json. Paste into this file the following code and replace uid and pwd fields with your own username and password for MySQL. If you changed the name of the database schema on import, update the database field to match:
{
  "ConnectionStrings": {
      "DefaultConnection": "Server=localhost;Port=3306;database=cameron_abel;uid=[NAME];pwd=[PASSWORD];"
  }
}
  • Still within the HairSalon directory, execute dotnet run

Stretch Goals

  • Styling is in okay state
  • Appointment creation pulls Client data from DB on the fly, and restricts selection of Stylists that do not match the desired service or who are no longer employed
  • Terminate and rehire your stylists

Known Bugs

  • ViewBag issues crop up, but may be resolved when not editing the project
  • JavaScript feels a little flaky

License

MIT

Copyright (c) 2023 Cameron Abel

Image Credits

Holiday Vectors by Vecteezy

Brown Vectors by Vecteezy

Scissors Vectors by Vecteezy