React frontend files for Spiri sim website
Go to file
Riddhi Dave d6150dc24b Update: App.js without backend code 2021-02-19 12:04:52 -05:00
build Build Files 2021-01-21 14:56:23 -05:00
nginx-conf React files 2020-12-21 10:29:31 -05:00
node_modules Stagging environment files update 2020-12-31 20:18:50 +00:00
public Update: App.js & config.js 2021-01-21 14:46:39 -05:00
src Update: App.js without backend code 2021-02-19 12:04:52 -05:00
.gitignore Logout with openid and simulator update 2021-01-21 12:37:32 -05:00
Dockerfile React files 2020-12-21 10:29:31 -05:00
README.md React files 2020-12-21 10:29:31 -05:00
package-lock.json Stagging environment files update 2020-12-31 20:18:50 +00:00
package.json Stagging environment files update 2020-12-31 20:18:50 +00:00

README.md

Spiri Cloud Simulator Frontend

This project contains the the frontend project for the Spiri Cloud Simulators.

  1. Setup the project on your machine :

    sudo apt install curl
    curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
    sudo apt-get install -y nodejs
    

    Verify your node and npm version:

    node --version 
    npm --version 
    
  2. From the github repo project :

    cd ~/Frontend
    npm install
    npm start
    
  3. Project description : Router: Routing to different pages frontend/src/routing.js

    Indexer: Mounting the routes to the main index.html frontend/src/index.js

    components: the various components mounted to the project frontend/src/components

Docker build run and clean commands:

  1. Docker build an image docker build -t spiri-demo-image_test_1 .
  2. Docker containerize an image docker run --name spiri-demo-image_test_1 -p 80:5000 -d spiri-demo-image_test_1
  3. docker list images docker image ls
  4. Docker container ls docker container ls
  5. docker remove everything (rarely use this) docker system prune -a