Skip to content

Installation

조성재 edited this page Mar 8, 2020 · 9 revisions

Check the security issues before installation.

How to install on PI

  1. Clone to /home/pi.
    /home/pi$ git clone https://github.com/rubycho/webpi
    /home/pi$ cd webpi
  2. Check environment variables.
    /home/pi/webpi$ vi .envs/.env.prod
    # do something
  3. And run the following:
    /home/pi/webpi$ .script/install.sh
    Installation may take minutes to complete.
  4. API is now available on port 8080.

Apache Related Operations on Installation

Below operations are done to enable webpi on apache2.

  1. Append . /home/pi/webpi/.envs/.env.prod on /etc/apache2/envvars to set environment variables.
  2. Copy .prod/webpi.conf on /etc/apache2/sites-available.
  3. Ensite webpi and restart apache2.

Use it with client

You can use webpi-app(SPA Client) to communicate with your installed WebPI. Check the repository.

You'll need to edit CORS_ORIGIN_WHITELIST on .envs/.env.prod and restart the WebPI.

Clone this wiki locally