Giter Site home page Giter Site logo

antikern / motorcyclemanual Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hailstorm75/sparesmanual

0.0 0.0 0.0 47.61 MB

Interactive software that allows a user to search and identify motorcycle parts from a Motorcycle Parts Manual

License: GNU Affero General Public License v3.0

C# 89.18% HTML 7.91% CSS 1.61% XSLT 0.63% JavaScript 0.67%

motorcyclemanual's Introduction

build

MotorcycleManual

Interactive software that allows a user to search and identify motorcycle parts from a Motorcycle Parts Manual

Setting everything up

The database

  1. Open a command prompt or terminal
  2. Navigate to the repository folder
  3. If the src/Libraries/Db/Db.Infrastructure/Migrations sub-folder are not empty and the database structure is up to date, skip the following sub-steps:
    1. Check if dotnet ef --version returns the version 5.0.0, if not follow the troubleshooting steps.
    2. If the database needs to be reset, delete the folders inside the src/Libraries/Db/Db.Infrastructure/Migrations folder and the src/Libraries/Db/Db.API/motor.db and src/Libraries/Db/Db.API/auth.db files
    3. Ensure that you are at the root of the repository
    4. Run the following commands:
      • dotnet ef migrations add ManualInitial -p Libraries/Db/Db.Infrastructure -s Libraries/Db/Db.API -o Migrations/Manual -c ManualContext
      • dotnet ef migrations add IdentityInitial -p Libraries/Db/Db.Infrastructure -s Libraries/Db/Db.API -o Migrations/Identity -c IdentityContext
    5. Verify that the src/Libraries/Db/Db.Infrastructure/Migrations folder now has two subfolders with content
    6. Run the following commands:
      • dotnet ef database update -p Libraries/Db/Db.API -c ManualContext
      • dotnet ef database update -p Libraries/Db/Db.API -c IdentityContext
    7. Run the Db.API project to execute the initial set-up data-seeding process

SSL Certificates

  1. Open a command prompt or terminal
  2. Navigate to the repository folder
  3. Navigate to src/Libraries/Db/Db.API
  4. Enter the following commnand into the command prompt: dotnet dev-certs https -t
  5. Confirm any popping up prompts
  6. Navigate to src/Application/MRI.Application
  7. Repeat steps 4 and 5

Troubleshooting

Missing DOTNET EF tool

To download the EF tool, run the following command in a terminal: dotnet tool install --global dotnet-ef --version 5.0.0

Run dotnet ef --version afterwards to make sure the correct tool version is installed.

Running the application

When working on/testing the front-end application, the database server must be running in the background.

To do so, follow these steps:

  1. In Visual Studio open View -> Terminal
  2. Navigate to src/Libraries/Db/Db.API
  3. Enter the following command into the terminal: dotnet run

To terminate the running application, press Ctrl+C in the terminal.

With the database application running in the background, the MRI.Application can be run using Visual Studio directly.

motorcyclemanual's People

Contributors

hailstorm75 avatar dickshalfwayinn 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.