ftolentino / SillyFactory.Solution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dr. SillyStringz Factory

By Filmer Tolentino

This website allows a factory owner to add engineers they employ to a database. The owner can also add machines that are currently running in their factory. The engineers can be assigned to one or many machines, and a machine can also have one or many engineers working on it at a time. Engineers and Machines can be created independent of eachother, so new engineers and new machines can be added or deleted as necessary.


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/SillyFactory.Solution
  2. Open a terminal and navigate to your Desktop with cd command
  3. Run, $ git clone https://github.com/ftolentino/SillyFactory.Solution
  4. In the terminal, navigate into the root directory of the cloned project folder "SillyFactory.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
    Factory.Solution
       └── Factory
        └── 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 "Factory", 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 engineers, machines, & engineermachine.
To Run Navigate to:
Factory.Solution
   └── 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

  • No known issues

License

None

Copyright (c) 8/5/2022 Filmer Tolentino

About


Languages

Language:C# 59.0%Language:HTML 40.6%Language:CSS 0.4%