Skip to content

JLEWilson/Pierre-sSweetAndSavoryTreats.Solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

Pierre's Sweet and Savory Treats

By Jacob Wilson

An mvc application that allows logged in users to facilitate treat/flavor relations. Non logged in users can only view details while logged in users can create, edit, and delete relationships.

Technologies Used

  • HTML
  • C#
  • CSS
  • Markdown
  • Bootstrap
  • HtmlHelper
  • SQL
  • MySQL
  • EntityFrameworkCore

Description

An mvc application that allows the user to facilitate treat/flavor relations. This project emphasizes practicing many to many relationships and authentication with Entity. The user is able to create a flavor object that can can be assigned to any number of treats or a treat object that be assigned any number of flavors. The project contains a splash page that lists all created objects as well as a navigation bar that can direct you either to both a flavors list a treats list, or to an account management page. The edit, create, and post views are only available to those who have logged in while the details view is available for all.

Setup/Installation Requirements

  • You can find the github repository here
  • Click the code button, and copy the https link
  • In your in git bash or your preferred git terminal navigate to the directory you would like to store the project
  • Enter: "git clone" followed by the https link
  • Now that the repository is cloned to your computer, right click on the folder and click open with vs code
  • Once in the project navigate to the PierresTreats directory
  • Type dotnet restore to install dependencies
  • In order to initialize a database you will need to create an appsettings.json file that looks like this
{
  "ConnectionStrings": {
      "DefaultConnection": "Server=localhost;Port=3306;database=jacob-wilson;uid={YOUR USER ID HERE};pwd={YOUR PASSWORD HERE};"
  }
}
  • Once you have the appsettings.json fie, to create a database run: dotnet ef migrations add Initial
  • To update the database in MySQL run: dotnet ef database update
  • At this point you will now be able to view the project by typing dotnet run in the terminal

Known Bugs

  • No known bugs

License - MIT

If you run into any problems or find a bug, would like to reach me for a separate reason, feel free to send me an email @jacobleeeugenewilson@gmail.com with details of your issue.

Copyright (c) 01/14/2022 Jacob Wilson

About

Class project using authentication in an mvc application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published