- C#
- .NET Framework
- HTML
- CSS
- Javascript
- jQuery
- MySQL
This is a C# web application for a salon. Once run, the site will allow the owner, Claire, to manage both stylists and customers. The application is written in C# and uses the .NET 5.0 web framework.
To view a live version of this project, please navigate to http://salon.dlinds.com:6001. If the site is offline, it is likely due to Dynamic DNS not having my current IP address at home. A script should update the DDNS entry every four hours, so please try again in a short while (or clone/run the project on your own). If it is still not up after four hours, please shoot me a message on Github and I will correct the issue!
To view this application, you must clone it to your computer. To do so,
- First, you will need to access a terminal. The easiest way to do so on either OS X (Mac) or Windows is to install Visual Studio (VS) Code.
- Once VS Code and Node.js are installed, navigate back to this project
- Locate and click the green Code button at the top of the page, and choose the option to Download ZIP.
- Once downloaded, navigate to your Downloads folder and extract the contents to a location of your choosing.
- Right click in the root directory of the folder, and choose Open With Code. This should open the repository in VS Code.
Once the project is downloaded to your computer, you will need to download and install C# and the .NET SDK.
- First, download and install the .NET 5 SDK
-
Once installed, open the project in VS Code (if it is not already open) and access a new terminal via the menu at top of VS Code.
-
Type the following command:
- dotnet tool install -g dotnet-script
-
Next, configure your terminal environment with the following command
- Mac: echo 'export PATH=$PATH:~/.dotnet/tools' >> ~/.zshrc
- Windows: echo 'export PATH=$PATH:~/.dotnet/tools' >> ~/.bash_profile
Prior to running the application, you will need to install MySQL and MySQL Workbench.
- During install, take note of the password you set for MySQL.
- Once installed, open MySQL Workbench to import the database.
- In the Navigator > Administration window, select Data Import/Restore.
- In Import Options select Import from Self-Contained File.
- Navigate to the root directory of the cloned project.
- Under Default Schema to be Imported To, select the New button.
- Enter a name for the database (ex: hair_salon)
- Click Ok.
- Navigate to the tab called Import Progress and click Start Import at the bottom right corner of the window.
- After you are finished with the above steps, reopen the Navigator > Schemas tab. Right click and select Refresh All. Your new database should now appear.
Once the database is imported, you will need to tell the application how to access it.
-
In the HairSalon directory, create a file called appsettings.json
-
Paste the following into the file, editing both the database name and the password in the string.
{ "ConnectionStrings": { "DefaultConnection": "Server=localhost;Port=3306;database=(my-database-name-here);uid=root;pwd=(my-password-here);" } }
Now that everything is installed and set up, you may run the project.
- Open up a new terminal and navigate to the HairSalon Folder
- Type in the following command: dotnet restore
- Type in the following command: dotnet run
- Open a web browser and navigate to http://localhost:5000
- No known issues at this time
MIT
Copyright (c) 3-13-2022 Daniel Lindsey