- C#
- .NET5.0
- Microsoft Entity Framework Core
- SQL
- C# HTML
- Razor view engine
- Bootstrap
- Microsoft.AspNetCore.Identity
- Bootstrap
- CSS
This is a C# application that uses .NET and Entity to work with a SQL database to help a fictional bakery keep track of its treats and flavor options for those treats. It also uses Identity to authenticate users.
- N/A
- navigate to github.com/S-Espinet in browser
- select repository (Treats.Solution)
- click
Code
button and select desired security protocol - run git clone in the terminal into desired directory
- make sure that dotnet is installed
- run "dotnet restore" in the terminal from SweetAndSavory directory
- you may need to run the following commands in the terminal:
- dotnet add package Microsoft.EntityFrameworkCore -v 5.0.0
- dotnet add package Pomelo.EntityFrameworkCore.MySql -v 5.0.0-alpha.2
- dotnet add package Microsoft.EntityFrameworkCore.Proxies -v 5.0.0
- dotnet tool install --global dotnet-ef --version 5.0.1
- dotnet add package Microsoft.EntityFrameworkCore.Design -v 5.0.0
- dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCore -v 5.0.0
- create appsettings.json file; it should appear as follows:
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost;Port=3306;database={YOURFIRSTNAME_YOURLASTNAME};uid=root;pwd={YOUR_PASSWORD};"
}
}
- run "dotnet ef database update" to create your database
- your appsettings.json file and any auto-generated files other than the Migrations directory (obj, bin, .vscode) should be stored in your .gitignore file
- run "dotnet run" in terminal from SweetAndSavory directory
- respond to prompts in browser to add contents to your database
- No known bugs at this time
Copyright (c) 2022 S-Espinet