To start the program, run: `npm start`.
To start the program with a UI controller, run: `npm start:server`.
-Then, start/stop the simulator connections by going to `https://<hostname:port>` in a browser.
+Then, start/stop the simulator connections by going to `https://<hostname:port>` in a browser. Localhost port will default to 8080. For BTP, the port is assigned based on the process.env.PORT environment variable.
## Docker
"prepare": "node prepare.js",
"prestart": "npm run build",
"start": "cross-env NODE_ENV=production node -r source-map-support/register dist/start.js",
- "start:server": "npm run build && cross-env NODE_ENV=production node -r source-map-support/register dist/http/start.js",
+ "start:server": "npm run build && cross-env NODE_ENV=production node -r source-map-support/register dist/ui/http/start.js",
"start:debug": "cross-env NODE_ENV=production node -r source-map-support/register --inspect dist/start.js",
"start:dev": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register dist/start.js",
"start:dev:debug": "npm run build:dev && cross-env NODE_ENV=development node -r source-map-support/register --inspect dist/start.js",
const isDevelopmentBuild = process.env.BUILD === 'development';
export default {
- input: ['src/start.ts', 'src/http/start.ts', 'src/charging-station/ChargingStationWorker.ts'],
+ input: ['src/start.ts', 'src/ui/http/start.ts', 'src/charging-station/ChargingStationWorker.ts'],
output: {
dir: 'dist',
format: 'cjs',
-import Bootstrap from '../charging-station/Bootstrap';
+import Bootstrap from '../../charging-station/Bootstrap';
import express from 'express';
const app = express();