Git Product home page Git Product logo

mtonosaki / jitwin Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 15.5 MB

"Just-in-time + Twin" A digital twin platform to study JIT model. Including VSM modeling GUI, IoT hub and Simulator.

License: MIT License

Makefile 0.19% HTML 0.19% TypeScript 76.87% SCSS 5.19% CSS 0.21% JavaScript 0.04% Kotlin 16.91% Dockerfile 0.42%
iot jit just-in-time simulator toyota tps vsm digital-twin modeling-and-simulation react

jitwin's Introduction

JitwinBanner-640x213

Links

Jitwin

"Just-in-time + Twin" - Digital twin platform like a broker between the real world and a virtual world to help you both to respect the real world and to find revolution idea in a virtual space.

Overview

  1. Value Stream Mapping (VSM) GUI Editor.
  2. Traceability hub
  3. Simulator

VSM GUI

Macro perspective modeling GUI (graphical user interface) with only five elements to visualize value stream mapping.

  • VSM template editor
  • VSM stage to instantiate from template.

Traceability hub

To make traceability from a wide variety of IoT data tagged a meaning of process with the methodology of Toyota Production System.

Simulator

Re-input IoT data into VSM for problem-solving, studying revolution idea and planning to drive real-world.

About this repository

Frontend : React / TypeScript Backend : Spring / Kotlin

Build on your PC

Preparation

Settings

export JITWIN_AAD_TENANT_ID=<your Azure Active Directory Tenant ID>
export JITWIN_AAD_CLIENT_ID=<your Application Client ID in AzureAD>
export JITWIN_AAD_CLIENT_SECRET=<your Application Client Secret Value>

see also https://github.com/mtonosaki/Jitwin/wiki/Azure-Settings#5-make-a-client-secret
NOTE: Setting the environment variable to rc file such as ~/.zshrc to smoothly run development and testing.

Frontend

copy ./jitwindev/web/.env.local.copy to .env.local and edit shell environment path.
cd ./jitwindev/web
yarn install

Backend

cd ./jitwindev/server
# Launch IntelliJ IDEA to make .idea folder automatically.
./gradlew ktlintApplyToIdea

Build / Debug

Middleware

cd ./jitwindev
# start Docker desktop on your mac
docker-compose up db

Frontend

cd ./jitwindev/web
yarn start

to access to frontend for debugging, https://localhost:3000

Backend

cd ./jitwindev/server
./gradlew build -x test
java -jar -Dspring.profiles.active=local build/libs/toyokan-api-0.0.1-SNAPSHOT.jar

to access to backend, http://localhost:8080

Test / Lint

ALL

cd ./jitwindev
make pre-push  # Lint, Test front/back end.

Frontend

cd ./jitwindev/web
yarn lint    # to lint
yarn test    # to test

Backend

cd ./jitwindev/server
./gradlew ktlintFormat   # to lint
./gradlew test   # to test

IDE (IntelliJ Ultimate)

Prettier Setting

  1. [Menu] → [IntelliJ IDEA] → [Preference]
  2. [Plugin@Left pane]
  3. Install the plugin named 'Prettier'
  4. [OK]
  5. [Menu] → [IntelliJ IDEA] → [Preference]
  6. [Languages & Frameworks @ Left pane] → [JavaScript] → [Prettier]
  7. Select prettier package from dropdown list.
  8. Check [On 'Reformat Code' action]

jitwin's People

Contributors

mtonosaki avatar snyk-bot avatar tmctono avatar

Stargazers

 avatar  avatar

Watchers

 avatar

jitwin's Issues

As Sophie, I want to login to Jitwin with Microsoft Active Directory so that she have personalized service.

GIVEN
Sophie sees Login button in Jitwin homepage.

WHEN
Sophie click the login button.

THEN
IF interactive login is requested,
Sophie can input login account and password
AND can accept/reject OAuth permission if it is necessary
AND Sophie sees Top page
AND sees her display name of azure active directory.

NOTE
if non interactive mode, Sophie must not input her account/password and just she sees Top page automatically.

As Sophie, I want logout button in Header panel so that she can logout from Main page.

GIVEN: Sophie sees Header panel,
WHEN: She clicks account area like her name, principal name and profile picture,
THEN: Open account menu
AND contains Logout button.

GIVEN: Sophie sees Logout button in the account menu,
WHEN: She clicks the Logout button,
THEN: She can logout with AzureAD function
AND go back to Home page automatically.

NOTE:
She can click Jitwin logo to go back Home and logout there.

As Sophie, I want to scroll Main page quickly so that she can focus a specific area.

GIVEN: Sophie sees a sample process on main page,

WHEN: She drag screen with customizable operation,

THEN: She can scroll the screen
AND THEN The sample process follows to her drag position.

NOTE:
Expecting this is implement as a MVFP's feature named "FeatureScroll"

about "customizable operation"

Can be set as a feature parameter. default is below 4 variation.

  • [CTRL Hold]+[SHIFT Hold]+[Mouse Left Hold]+[Mouse Move]
  • [Mouse Middle Hold]+[Mouse Move]
  • [Mouse Right Hold]+[Mouse Move]
  • [Swipe screen] (on touch panel)

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.