portal/views
Prajwalanagaraj 5d7343f2cd Changes for docker testing 2021-03-01 12:40:20 -05:00
..
.gitignore Code changes to integrate react-express on same server port for Get/Overlays 2021-02-18 11:52:01 -05:00
README.md Code changes to integrate react-express on same server port for Get/Overlays 2021-02-18 11:52:01 -05:00

README.md

Getting started

Prereq : Run setup.sh

Instructions for running the views folder [React standalone] :

Start the server/Server.js code with modification to not call index.html from ui folder as shown below:

app.get('/', (req, res) => {
  res.sendFile(path + "index.html");//loads the react UI
});

To

app.get('/', (req, res) => {
  res.json({ message: "Welcome to Visualizer application." });
});

Change the configured port at config.js @views/src to anything other than 3000 [As server is running on 3000]

Run :

npm start

a landing page will show up on your browser. Any change to views folder, run "npm start" to compile and test.