Code Monkey home page Code Monkey logo

messageboardclient.solution's Introduction

Pierre's Sweet and Savory Treats

By Filmer Tolentino

This website allows Pierre to market his sweet and savory treats. The application has user authentication and a many to many relationship.

Features

  • The application should have user authentication. A user should be able to log in and log out. Only logged in users should have create, update and delete functionality. All users should be able to have read functionality.
  • There should be a many-to-many relationship between Treats and Flavors. A treat can have many flavors (such as sweet, savory, spicy, or creamy) and a flavor can have many treats. For instance, the "sweet" flavor could include chocolate croissants, cheesecake, and so on.
  • A user should be able to navigate to a splash page that lists all treats and flavors. Users should be able to click on an individual treat or flavor to see all the treats/flavors that belong to it.

Technologies Used

  • C#
  • .NET
  • HTML
  • CSS
  • SQL Workbench
  • Entity Framework
  • MVC

Description

This is an MVC application that was built using C#.


Setup and Installation Requirements

This Setup assumes you have GitBash and MySQL Workbench pre-installed.
If you do not have one or both installed, please begin with that setup below.
If you do have both installed, move onto "initial setup".

GitBash and MySQL Workbench Setup
  1. https://git-scm.com/download/
  2. Download Git and follow the setup wizard.
  3. https://dev.mysql.com/downloads/workbench/
  4. Download MySQL Workbench
  5. Follow the setup wizard & create a localhost server on port 3306.
  6. Keep track of your username and password, this will be used in the connection steps of "SQL Workbench Configuration"
Initial Setup
  1. Copy the git repository url: https://github.com/ftolentino/pierres-treats
  2. Open a terminal and navigate to your Desktop with cd command
  3. Run, $ git clone https://github.com/ftolentino/pierres-treats
  4. In the terminal, navigate into the root directory of the cloned project folder "SweetSavory.Solution".
  5. Navigate to the projects root directory, "SweetSavory".
  6. Move onto "SQL Workbench Configuration" instructions below to build the necessary database.
SQL Workbench Configuration
  1. Create an appsetting.json file in the "Factory" directory
    SweetSavory.Solution
       └── SweetSavory
        └── appsetting.json
  2. Insert the following code:
    {
      "ConnectionStrings": {
        "DefaultConnection": "Server=localhost;Port=3306;database=filmer_tolentino;uid=root;pwd=[YOUR-PASSWORD-HERE];"
      }
    }

    *Note: you must include your password in the code block section labeled "YOUR-PASSWORD-HERE".
    **Note: you must include your username in the code block section labeled "YOUR-USERNAME-HERE".
    ***Note: if you plan to push this cloned project to a public-facing repository, remember to add the appsettings.json file to your .gitignore before doing so.

  3. In root directory of project folder "SweetSavory", run $ dotnet ef migrations add restoreDatabase
  4. Then run $ dotnet ef database update
    1. Open SQL Workbench.
    2. Navigate to "filmer_tolentino" schema.
    3. Click the drop down, select "Tables" drop down.
    4. Verify the tables, you should see treat, flavor, & flavortreat.
To Run Navigate to:
SweetSavory.Solution
   └── SweetSavory

Run $ dotnet restore in the terminal.
Run $ dotnet run in the terminal.


This program was built using Microsoft .NET SDK 5.0.401, and may not be compatible with other versions. Cross-version performance is neither implied nor guaranteed, your actual mileage may vary.


Known Bugs

  • No known issues

License

None

Copyright (c) 8/5/2022 Filmer Tolentino

messageboardclient.solution's People

Contributors

ftolentino avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.