|
||
---|---|---|
build | ||
nginx-conf | ||
node_modules | ||
public | ||
src | ||
Dockerfile | ||
README.md | ||
package-lock.json | ||
package.json |
README.md
Spiri Cloud Simulator Frontend
This project contains the the frontend project for the Spiri Cloud Simulators.
-
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
-
From the github repo project :
cd ~/Frontend npm install npm start
-
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:
- Docker build an image
docker build -t spiri-demo-image_test_1 .
- Docker containerize an image
docker run --name spiri-demo-image_test_1 -p 80:5000 -d spiri-demo-image_test_1
- docker list images
docker image ls
- Docker container ls
docker container ls
- docker remove everything (rarely use this)
docker system prune -a