- C#
- ASP.Net Core MVC
- Entity Framework Core
- MySQL
- JavaScript
Demonstrates CRUD methods using the ASP.NET MVC and MySQL.
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 replaceuid
andpwd
fields with your own username and password for MySQL. If you changed the name of the database schema on import, update thedatabase
field to match:
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=3306;database=cameron_abel;uid=[NAME];pwd=[PASSWORD];"
}
}
- Still within the
HairSalon
directory, executedotnet run
- 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
- ViewBag issues crop up, but may be resolved when not editing the project
- JavaScript feels a little flaky
MIT
Copyright (c) 2023 Cameron Abel