To run a dev server against the test API (wide open CORS):
REACT_APP_API_BASE=http://open990demobackend-env-1.3x3uibyjqp.us-east-1.elasticbeanstalk.com/ npm start
More generally, to run a dev server against any API instance:
REACT_APP_API_BASE=https://path/to/api npm start
To build a production instance and serve it locally:
npm install -g serve
REACT_APP_API_BASE https://path/to/api npm build
serve -s build
docker build -t open990 --target runner .
docker run -p 8080:80 -d open990
Note: --build-arg will work with any of the stages (builder, runner, or artifact)
docker build -t open990 --target runner --build-arg REACT_APP_API_BASE=https://path/to/api .
docker run -p 8080:80 -d open990
docker build -t open990-artifact --target artifact .
docker run -v ${PWD}:/usr/artifact open990-artifact
http://open990demobackend-env-1.3x3uibyjqp.us-east-1.elasticbeanstalk.com/