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 only

      • 0.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

  1. Start optinist on host PC

    • machine name: optinist-demo-pc

    • run optinist: run_optinist --host=0.0.0.0 --port=8000

  2. Access to optinist from client PC

    • Access http://optinist-demo-pc:8000 with 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

  1. Start optinist on host PC

    • machine name: optinist-dev-pc

    • run 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 start or yarn install && yarn start

  2. Access to optinist from client PC

    • Access http://optinist-dev-pc:3000 with 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.

  1. Provision Cloud Platform resources (EC2, etc.)

  2. Setup optinist on the resource provisioned above.

    • See: Installation

    • Ubuntu or Docker is recommended as a platform.

  3. Start optinist in network public mode

  4. Configure network routing to optinist on Cloud Platform.

  5. Test & Release