Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

extension=php_curl.dll
extension=php_mbstring.dll
extension=php_openssl.dll
extension=php_pgsql.dll
extension=php_pdo_pgsql.dll

Note

Download cacert.pem certificate and add path under below

curl.cainfo = "path_to_file\cacert.pem"

Go to PHP folder and Install composer:

...

Code Block
psql -U postgres
postgres=# create database webclient;
postgres=# create user webclient;
postgres=# alter user webclient with encrypted password 'webclient';
postgres-# grant all privileges on database webclient to webclient;

For Postgres 15 and newer here are additional steps:

Code Block
GRANT ALL PRIVILEGES ON DATABASE webclient TO webclient;
\c webclient postgres
# You are now connected to database "webclient" as user "postgres".
GRANT ALL ON SCHEMA public TO webclient;

Copy and prepare the code

...

Clone the Web client package from

...

GitHub. Go to /api/ folder and run the composer:

Code Block
php.exe path_to_php_folder\composer install

Setup Firebase Project and Authentication

Prepare 4 config files and copy them to /api/conf.d folder:

  1. firebase.php

  2. config.js

  3. config.php

  4. admin_channel.json

...

Test the web server

For testing, we recommend using the built-in PHP web server. You can launch it using the following command:

...

Where path_to_the_web_client is the path to the www folder of the package.

Initialize the database

Open this URL in your browser window

http://your_server_ip:port/api/v1/db/update

It should show something like this in the browser:

...