README.md 2.08 KB
Newer Older
Anestis's avatar
Anestis committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Intructions 

1. To run this project you have to run backend server.
2. Create a .env file (in backend_server folder) based on .env.example 
   in order for the Forgot Password functionality to work properly

### For backend_server

npm i
npm run dev
Runs the server on port 3090.<br>

The page will reload if you make edits.<br>
You will also see any lint errors in the console.

## You have to set up a mongo db at port 27017
download and install mongo from here https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/
start mongo service 

Add C:\Program Files\MongoDB\Server\4.0\bin on path or just type

C:\Program Files\MongoDB\Server\4.0\bin\mongod --dbpath c:/mongodb


### For the web application 

yarn
yarn start

Launches the web application at port 3000.<br>
http://localhost:3000

### For the Dimensioning Workbench API/ interaction with the UI

1. You need to have a local docker installation https://www.docker.com/products/docker-desktop
2. Inside directory /dimensioningWorkbench/DW_API/ATCTest, open a terminal and run: Docker-compose up -d
   This will build the different components and start them locally as containers.
  
   Once all of the components have started you can check the RabbitMQ exchange server at:
   •	http://localhost:8080
   The username and password is:
   •	richardm
   •	bigdatastack

3. Inside directories /dimensioningWorkbench/rabbitAPI/send and /dimensioningWorkbench/rabbitAPI/receive execute in a terminal 
	> npm install
	> nodemon send.js 
	
	and 
	> npm install
	> nodemon receive.js 
	
	respectively.
   
    This way information can be sent and retrieved to the RabbitMQ server.
	The server instances are on ports 4000 and 4001 respectivelly.


4. Transmit the following commands in a terminal to open an SSH tunnel in order to
   consume Services hosted at the UPM TestBed

   SSH -p 22103 bigdatastack@lsdclus04.ls.fi.upm.es -L 5002:127.0.0.1:5002
   SSH -p 22103 bigdatastack@lsdclus04.ls.fi.upm.es -L 5003:127.0.0.1:5003

   password is: !bigdatastack!