Skip to content

MVC web app with many-to-many database relationship (Entity) and user authentication/authorization (Identity)

Notifications You must be signed in to change notification settings

S-Espinet/Treats.Solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

Pierre's_Sweet_and_Savory_Treats

By S-Espinet

C#/.NET application using databases to keep track of a fictional bakeries treats and flavor options

Technologies Used

  • C#
  • .NET5.0
  • Microsoft Entity Framework Core
  • SQL
  • C# HTML
  • Razor view engine
  • Bootstrap
  • Microsoft.AspNetCore.Identity
  • Bootstrap
  • CSS

Description

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.

GitHub Pages Link

  • N/A

Setup/Installation Requirements

  • 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

Known Bugs

  • No known bugs at this time

License

MIT

Copyright (c) 2022 S-Espinet

About

MVC web app with many-to-many database relationship (Entity) and user authentication/authorization (Identity)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published