/HairSalon.Solution

MVC web application.

Primary LanguageC#

Eau Claire's Salon

By Carlos Urquiza

MVC web application for Eau Claire's Salon.

Technologies Used

  • C#
  • MVC
  • Razor View Engine
  • RESTful Routing
  • .NET 5.0
  • Entity Framework
  • Pomelo Entity Framework
  • MySQL Workbench
  • Git

Description

This MVC web application has the following functionality:

  • As a salon owner, I can see a list of all stylists.
  • As a salon owner, I can select a stylist, see their details and see a list of clients that belong to that stylist.
  • As a salon owner, I can add new stylist to the application.
  • As a salon owner, I can add new clients to a specific stylist.
  • As a salon owner, I cannot add a client if no stylists have been added.

Setup/Installation Requirements

Before taking the following installation steps, ensure you have C#, .NET, dotnet script and MySql installed on your computer.

  • Clone this repository.
  • Open your terminal.
  • Navigate to the directory (such as your Desktop folder) where you want the cloned repository to be housed.
  • Run git clone https://github.com/webquiza/HairSalon.Solution.git.
  • Press Enter.

Import database

  • Launch your MySQL Workbench.
  • Navigate to the Navigator > Administration window and select the Data Import/Restore option.
  • In Import Options section select Import from Self-Contained File.
  • Navigate to the HairSalon.Solution folder.
  • Select carlos_urquiza.sql as the dump file.
  • Click Ok.
  • From the Import Progress tab, click Start Import which is located at the bottom right section of the window.
  • Once import completes, go to the Navigator > Schemas tab. Right click to select Refesh All. You will now see the database appear.
  • Connect the database to the project by creating a appsettings.json file inside HairSalon.Solution/HairSalon.
  • Within your new appsettings.json file, add the following piece of code. Note that you will need to enter the password you created for your specific MySQL configuration ( remove the [ ] ):
{
  "ConnectionStrings": {
    "DefaultConnection": "Server=localhost;Port=3306;database=carlos_urquiza;uid=root;pwd=[YOUR-PASSWORD-HERE];"
  }
}

View project in local host

  • Navigate to HairSalon directory.
  • Run dotnet restore to retrieve and install the packages we listed in .csproj.
  • Run dotnet build to build the project.
  • Run dotnet run to start up your local host (http://localhost:5000).

Known Bugs

  • No known bugs.

License

MIT License

Copyright (c) 2021 Carlos Urquiza

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contact Information

Feel free to contact me at webquiza@gmail.com with any questions regarding this webpage.