Skip to content

Latest commit

 

History

History
135 lines (82 loc) · 2.96 KB

File metadata and controls

135 lines (82 loc) · 2.96 KB

SUPLA Cloud - Development

This document describes how to run SUPLA Cloud in a local development environment.

It does not apply to production or self-hosted deployments.

Please note that this setup installs SUPLA Cloud only, without the device communication server (supla-server).

Managing real devices using SUPLA Cloud alone is not possible. By default, the development environment uses a mocked supla-server for local testing.


First launch

Prerequisites

  1. Install PHP 8.3 or newer

    • On Windows, you may use tools such as XAMPP or equivalent PHP distributions.
  2. Install a MySQL-compatible database server

    • MySQL or MariaDB
    • XAMPP already includes MySQL.
  3. Install Node.js LTS

    • Current LTS version recommended (includes npm).
  4. Install Git, then fork and clone the repository:

git clone https://github.com/YOUR_FORK/supla-cloud.git
  1. Go to the cloned directory.

  2. Install Composer: https://getcomposer.org/download/


Backend setup

  1. Install PHP dependencies:
composer install

During installation, Composer will ask for configuration values. For development purposes, the most important are:

  • database_* – database connection configuration
  • supla_server – set to localhost:8008
  • recaptcha_enabled – set to false

Other values can be left at their defaults.

If you need to adjust the configuration later, edit:

app/config/parameters.yml


Frontend setup

  1. Install frontend dependencies and build the frontend for the first time:
composer run-script webpack

Database initialization

  1. Initialize the database and load sample data:
php bin/console cache:clear --no-warmup -e dev
php bin/console supla:dev:dropAndLoadFixtures -e dev

Development workflow

  1. Run the backend application:
php -S 127.0.0.1:8008 -t web web/router.php
  1. Run the frontend development server:
cd src/frontend
npm run serve
  1. Open the application in your browser:

http://localhost:8080

  1. Log in using the sample account:

    • email: user@supla.org
    • password: pass

Notes on scope

  • This setup is intended only for development and testing.
  • It uses a mocked device server and does not support real device connections.
  • For production or self-hosted installations, use: https://github.com/SUPLA/supla-docker

Contributing

If you would like to contribute:

  1. Check existing issues: https://github.com/SUPLA/supla-cloud/issues
  2. Comment on an issue to indicate you are working on it.
  3. Create a feature branch on your fork.
  4. Submit a pull request.
  5. Follow the rules described in CONTRIBUTING.md.

Thank you for contributing to the SUPLA project.