Skip to content

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

License

Notifications You must be signed in to change notification settings

mtonosaki/Jitwin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]