Code Monkey home page Code Monkey logo

dr.-sillystringz-s-factory's Introduction

Dr. Sillystringz's Factory

By Ryan DeFea

This website allows the user to add engineers to a database. The user can also add machines to a database. An engineer can belong to many machines and machines can belong to many engineers.


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/GarrettHays/Sillystringz.Solution
  2. Open a terminal and navigate to your Desktop with cd command
  3. Run, $ git clone https://github.com/GarrettHays/Sillystringz.Solution
  4. In the terminal, navigate into the root directory of the cloned project folder "Sillystringz.Solution".
  5. Navigate to the projects root directory, "Factory".
  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
    Sillystringz.Solution
       └── Factory
        └── appsetting.json
  2. Insert the following code:
    {
      "ConnectionStrings": {
        "DefaultConnection": "Server=localhost;Port=3306;database=ryan_defea;uid=[YOUR-USERNAME-HERE];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 "Factory", run $ dotnet ef migrations add restoreDatabase
  4. Then run $ dotnet ef database update
    1. Open SQL Workbench.
    2. Navigate to "ryan_defea" schema.
    3. Click the drop down, select "Tables" drop down.
    4. Verify the tables, you should see engineers, machines, & engineermachine.
To Run Navigate to:
DR.-SILLYSTRINGZ-S-FACTORY
   └── Factory

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

  • The machine and engineer links on the splash page are currently broken.

License

None

Copyright (c) 2022 Ryan DeFea

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.