frostyandy2k / sapp-black-cylinder

Black Cylinder App - Production Digital Twin App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ScaleIT Black Cylinder App

The ScaleIT Black Cylinder App is just a ScaleIT Demo App. It literally does nothing more than the ionic-app-skeleton.

Usage

git clone https://github.com/ScaleIT-Org/sapp-i40-app-skeleton.git My_New_ScaleiT_App

With Git Submodule Composition

Add Node.js Domain Software:

cd My_New_ScaleiT_App
git submodule add https://github.com/ScaleIT-Org/nodejs-app-skeleton.git "Domain Software/MyNodejsApp"

Add a platform sidecar:

File Based Composition/Copying

mkdir MyNodejsApp
git clone https://github.com/ScaleIT-Org/nodejs-app-skeleton.git MyNodejsApp

# move or copy the Node.js skeleton to the Industry 4.0 Ready App Skeleton
mv MyNodejsApp "My_New_ScaleiT_App/Domain Software"

# optionally but recommended, remove the git version control from the Node.js skeleton
cd "My_New_ScaleiT_App/Domain Software/MyNodejsApp"
rm -rf .git

Features

Contains 3 Folders to seperate the application components:

  • Domain Software
    • contains the main app (Black Cylinder)
  • Platform Sidecars
    • nothing, not needed by Black Cylinder
  • Resources
    • Rancher (Documents for the Rancher catalog entry)

How to build

Go to Domain Software/Black Cylinder and run

  docker-compose up -d --build

Configuration

Set Docker port

You can edit the published docker port by setting the property inside docker-compose.yml.

For example:

ports:
   - "8080:80"

Setting an API URL

You can set an API URL in src/environments/environment.ts for development or in src/environments/environment.prod.ts for production.

For example:

export const environment = {
  dummyData: false,
  apiUrl: "http://my.fancy.host.example.com",
  production: true
};

Notes

The .gitkeep files are just placeholders and can be deleted. This is due to the fact that git only checks in folders with files inside them.

About

Black Cylinder App - Production Digital Twin App

License:MIT License


Languages

Language:TypeScript 51.8%Language:HTML 22.4%Language:CSS 21.4%Language:JavaScript 4.4%