- C#
- .NET 5.0.102
- ASP.NET Core MVC 4.8
- Razor
- Entity Framework Core
- MySql
- Git
An MVC web application that utilizes a database with many-to-many relationships to:
- Display a list of Engineers and Machines, together and on separate pages
- Select an engineer/machine and see their details, including the machines/engineers that are able to work together.
- Add new engineers and machines to the database, even if there are no associated engineers/machines on addition.
- Add or remove machines that an engineer is licensed to repair.
- Add or remove licensed engineers from a machine.
Note: Make sure you have .NET 5.0 installed. If not, please visit this link
- Clone this repository to your computer from this repository
- In your terminal of choice, navigate to the Factory directory
- Create a file named "appsettings.json" in this directory
- Add the following lines of code to your newly created "appsettings.json" file and save.
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=3306;database=[YOUR DATABASE];uid=root;pwd=[YOUR PASSWORD];"
}
}
NOTES: [YOUR PASSWORD] MUST be the same password as that on your local machine/server.
[YOUR USERNAME] is up to your discretion.
For help on database configuration, please see here
- Back in the terminal, enter
dotnet build
and ensure that there are no errors - Enter
dotnet ef database update
into the terminal to build the database
(Note: If a "Build failed" Error occurs, please try runningdotnet ef migrations Add Initial
in the terminal. ) - Enter
dotnet run
into the terminal to run the application
- Styling currently does not work.
MIT
Woo Jin Kim ([email protected]) Copyright (c) 2021 Woo Jin Kim