Appendix
Application Configurations
optinist startup options
Options for
run_optinist,python main.py--host… Request listen host (default: 127.0.0.1)127.0.0.1… Allow access from localhost only0.0.0.0… Allow access from all networks
--port… Request listen port (default: 8000)
Command Example
run_optinist --host=0.0.0.0 --port=8000
Allow access to optinist from another PC
By setting the optinist startup options, you can access optinist via a browser from a network other than your own PC.
Example of procedure
Start optinist on host PC
machine name:
optinist-demo-pcrun optinist:
run_optinist --host=0.0.0.0 --port=8000
Access to optinist from client PC
Access
http://optinist-demo-pc:8000with a browser
Caution
On optinist host PC, access to the port specified by --port must also be allowed in the firewall settings for each Platforms(OS).
Application Configurations (Developers)
Allow access to optinist from another PC
By setting the optinist startup options and configs, you can access optinist via a browser from a network other than your own PC.
Example of procedure
Start optinist on host PC
machine name:
optinist-dev-pcrun backend
run:
run_optinist --host=0.0.0.0 --port=8000
run frontend
first, edit
frontend/.env# REACT_APP_SERVER_HOST is OK to leave it empty. (use default: location.hostname) REACT_APP_SERVER_HOST= REACT_APP_SERVER_PORT=8000
run:
yarn startoryarn install && yarn start
Access to optinist from client PC
Access
http://optinist-dev-pc:3000with a browser
Caution
On optinist host PC, access to the port specified by --port must also be allowed in the firewall settings for each Platforms(OS).
About running on the Cloud Platform
optinist can also run on Cloud Platforms such as AWS.
The actual construction procedure depends on the construction procedure of each Cloud Platforms, but the general flow is as follows.
Provision Cloud Platform resources (EC2, etc.)
Setup optinist on the resource provisioned above.
See: Installation
Ubuntu or Docker is recommended as a platform.
Start optinist in network public mode
Configure network routing to optinist on Cloud Platform.
Test & Release