Pierre's Treats
By Marni Sucher
Table of Contents
- Technologies Used
- Description
- Setup/Installation Requirements
- Known Bugs
- License
- Contact Information
Technologies Used
- C#
- .NET 5.0.100
- ASP.NET Core MVC
- dotnet ef 3.0.0
- Microsoft.NET.Sdk.Web
- Microsoft.EntityFrameworkCore 5.0.0
- Microsoft.EntityFrameworkCore.Design -v 5.0.0
- Pomelo.EntityFrameworkCore.MySql 5.0.0-alpha.2
- Identity
Description
This web-based application tracks all the machines and Engineers at a fictional factory. Users may add/remove engineers licensed to fix a machine or add/remove machines an engineer is licensed to fix.
Setup/Installation Requirements
Install C#, .NET, MySQL Community Server and MySQL Workbench
- Open the terminal on your local machine
- If C# and .NET are not installed on your local device, follow the instructions here
- If MySQL Community Server and MySQL Workbench are not installed on your local device, follow the instructions here
Clone the project
- Navigate to the directory inside of which you wish to house this project
- Clone this project with the command
$ git clone https://github.com/marnionrails/PierresTreats.Solution
Import and connect the database
- In your terminal, navigate to the production project directory with the command
$ cd PierresTreats.Solution/PierresTreats
- In your terminal, create a file within the project in which to store your connection string for connecting the project to the database with the command
touch appsettings.json
- In your text editor add the following code to the newly created appsettings.json file. *Note that uid and pwd may vary depending on your local MySql configurations.
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=3306;database=[marni_sucher];uid=root;pwd=[YOUR-PASSWORD-HERE];"
}
}
- Update the database with this command:
$ dotnet ef database update
Run the project
- Recreate project environment and install required dependencies with terminal command
$ dotnet restore
- Run the program in the console with the command
$ dotnet run
Known Bugs
- No known bugs.
License
Copyright (c) 2021 Marni Sucher