Skip to content

React based web frontend for sail platform user

License

Notifications You must be signed in to change notification settings

secureailabs/sail-user-portal

Repository files navigation

Sail User Portal

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

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

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run build_image

Build the docker image for the app.

For MAC users and you get the following error failed to solve with frontend dockerfile.v0 Set the following environment variables (docker/buildx#426) export DOCKER_BUILDKIT=0 export COMPOSE_DOCKER_CLI_BUILD=0

npm run push_image

Push the docker image to the SAIL registry.

Run the app in docker

REACT_APP_SAIL_API_SERVICE_URL=https://172.20.100.8:8000
REACT_APP_SAIL_DATA_UPLOAD_SERVICE_URL=https://172.20.100.9:8000
docker run -it -v $(pwd)/certs:/etc/nginx/certs -p 3000:3001 --env REACT_APP_SAIL_API_SERVICE_URL=$REACT_APP_SAIL_API_SERVICE_URL --env REACT_APP_SAIL_DATA_UPLOAD_SERVICE_URL=$REACT_APP_SAIL_DATA_UPLOAD_SERVICE_URL userportal

Note: Update the REACT_APP_SAIL_API_SERVICE_URL and REACT_APP_SAIL_DATA_UPLOAD_SERVICE_URL to the correct values for your deployment.

Run app without docker

REACT_APP_SAIL_API_SERVICE_URL=http://127.0.0.1:8000
REACT_APP_SAIL_DATA_UPLOAD_SERVICE_URL=http://127.0.0.1:9000
REACT_APP_SAIL_API_SERVICE_URL=$REACT_APP_SAIL_API_SERVICE_URL REACT_APP_SAIL_DATA_UPLOAD_SERVICE_URL=$REACT_APP_SAIL_DATA_UPLOAD_SERVICE_URL npm start

About

React based web frontend for sail platform user

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages