8. Arduino Frontend Guide¶
8.1. Serve on a Local Machine¶
Note: Required Node JS and Angular 7
For installing nodejs and npm visit ( https://nodejs.org/en/download/)
Open Command prompt (or powershell) and enter the following:
npm install -g @angular/cli ng --version
8.1.1. Without Docker¶
Please Follow the Steps.
Open Command promt
Navigate to folder dist/eSim-cloud/ArduinoFrontend/
Execute the following command to start Angular server:
ng serve
For more serve commands visit (https://angular.io/cli/serve)
To build the app and deploy your Angular application to a remote server:
ng build --prod
8.1.2. With Docker¶
9. Configuring Production Environment¶
Install Docker and docker-compose for server OS
git clone git@github.com:frg-fossee/eSim-Cloud.git && cd eSim-Cloudcp .env .env.prod(PLEASE CHANGE DEFAULT CREDENTIALS IN THE .env.prod FILE)docker-compose -f docker-compose.prod.yml --env-file .env.prod up --scale django=2 --scale celery=3 -d
10. Configuring Development Environment¶
Install docker-ce and docker-compose for your OS
To Build/ReBuild necessary containers using
docker-compose -f docker-compose.dev.yml build
( Please note these containers are only for dev environment, in production compiled files will be served by nginx)
To run arduino-frontend along with all backend containers
docker-compose -f docker-compose.dev.yml up arduino-frontend
Our Web Application is supported by the following browsers:
Google Chrome
Mozilla Firefox
Opera
Microsoft Edge
Safari