Install PHP7.4
It’s crucial to install 7.4, not 8.x
Configure php.ini
Change log level to errors only:
error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
Make sure that the following extensions are uncommented
extension=php_curl.dll
extension=php_mbstring.dll
extension=php_openssl.dll
extension=php_pgsql.dll
extension=php_pdo_pgsql.dll
Download cacert.pem certificate and add path under below
curl.cainfo = "path_to_file\cacert.pem"
Go to PHP folder and Install composer:
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" php composer-setup.php --install-dir=./ --filename=composer
Install Postgres for Windows
Configuring the database in CMD
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
Copy and prepare the code
Download package from https://exchange.videoexpertsgroup.com/b6450e08-f116-44f2-b6a5-5a0c13f55561/src/ to your local machine and unzip.
Go to /api/
folder and run the composer:
php.exe path_to_php_folder\composer install
Setup Firebase Project and Authentication
Add ‘localhost’ and local IP of machine to Authorized domain.
Prepare 4 config files and copy them to /api/conf.d
folder:
admin_channel.json
Run the web server
For testing we recommend using the built-in PHP web server. You can launch it using the following command:
start php.exe -S your_server_ip:port -t path_to_the_web_client
Where path_to_the_web_client
is 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: