Moved ui folder
authorJeff Durnwald <jeff.durnwald@sap.com>
Tue, 12 Apr 2022 14:31:24 +0000 (10:31 -0400)
committerJeff Durnwald <jeff.durnwald@sap.com>
Tue, 12 Apr 2022 14:31:24 +0000 (10:31 -0400)
README.md
package.json
rollup.config.js
src/ui/http/start.ts [moved from src/http/start.ts with 93% similarity]

index 0a2d921097ff822eba71997f1efce619e37cb3bc..25fe10234969d7742380da6cc34a0aa2aa07bf47 100644 (file)
--- a/README.md
+++ b/README.md
@@ -242,7 +242,7 @@ The syntax is similar to the charging station configuration template 'Configurat
 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
 
index 37f0a76768b75bc03098786bc455508bdd4dd71b..aa7ea28902695a55ed5d94c1ad54ba53c55f6676 100644 (file)
@@ -46,7 +46,7 @@
     "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",
index ae0e0d905e8e0c01056be21535d8ca77361666e9..67435bc7c99e19f6c28b49355d600cf09d9688ad 100644 (file)
@@ -9,7 +9,7 @@ import ts from 'rollup-plugin-ts';
 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',
similarity index 93%
rename from src/http/start.ts
rename to src/ui/http/start.ts
index 7afdd281866de32f7d12dd45505a919510355816..27b7fcb9cb37673e83e2d9ba8529fb2c1c9a6052 100644 (file)
@@ -1,4 +1,4 @@
-import Bootstrap from '../charging-station/Bootstrap';
+import Bootstrap from '../../charging-station/Bootstrap';
 import express from 'express';
 
 const app = express();