This MVC web application is designed to manage the operations of the SillyStringz factory, focusing on handling engineers and their associated machines. It allows the factory management to add engineers, view detailed profiles, and associate each engineer with multiple machines. Machines and engineers can be deleted.
- Engineers: Create and manage engineer profiles.
- Machines: Add and detail machines within the factory.
- Association: Link multiple machines to individual engineers to reflect responsibilities and expertise.
- Language: C#
- Framework: .NET 5.0 or .NET 6.0
- IDE: Visual Studio 2019 or 2022
- Database Management: Entity Framework Core, Microsoft.EntityFrameworkCore.SqlServer
- Version Control: Git
Follow these steps to get a local copy up and running:
-
Clone the Repository
git clone https://github.com/christopher-quattrocchi/SillyStringz.git
-
Navigate to the Project Directory cd SillyStringz.Solutions cd SillyStringz
-
Restore Dependencies dotnet restore
-
Build the Project dotnet build
-
Run the Project dotnet run
Access the application through a web browser at the indicated URL, typically http://localhost:5000
.
This project uses a SQL database to store and manage data. Follow the instructions below to set up the database environment:
- If needed, install SQL Workbench: official website.
-
Open SQL Workbench and connect to your MySQL server.
-
Import the Database Schema:
- In the top menu, navigate to
Server
>Data Import
. - Choose "Import from Self-Contained File" and select the
chris_quattrocchi2.sql
file located in your project directory. - Under "Default Target Schema", either select an existing schema or create a new one to import the tables into.
- Click
Start Import
at the bottom right to execute the script and create the tables in your database.
- In the top menu, navigate to
-
Configure Connection String:
- In your application's
appsettings.json
file, update the connection string to match your database name and credentials:
{ "ConnectionStrings": { "DefaultConnection": "Server=localhost;Database=yourDatabaseName;Uid=yourUsername;Pwd=yourPassword;" } }
- In your application's
dotnet ef database update
Unknown
This project is licensed under the MIT License.