This description shows how to install launch the SUPLA Cloud in developer environment. It does not apply to production instances.
Please note, that this only installs SUPLA Cloud, without supla-server. Managing the devices from SUPLA Cloud only is impossible. Development instance uses mock of supla-server by default.
-
Install PHP v7.3. On Windows machines, you can install XAMPP.
-
Install MySQL database server (XAMPP already contains it).
-
Install Node JS LTS. Version 14.x with NPM 7.x is proved to be working.
-
Install Git, then fork and clone the repository with
git clone
command. -
Go to the cloned directory.
-
Install Composer.
-
Install project's PHP dependencies with
composer install
. During the installation, copmoser will ask you for a bunch of things. For the development environment, the most important are:database_*
- configuration of your database connectionsupla_server
- set it tolocalhost:8008
recaptcha_enabled
- set it tofalse
You can leave the defaults for all of the other settings. If you made a mistake, you can fix it by editing the
app/config/parameters.yml
file. -
Install the frontend dependencies and build it for the first time with
composer run-script webpack
-
Initialize the database and load sample data with
php bin/console cache:clear --no-warmup -e dev php bin/console supla:dev:dropAndLoadFixtures -e dev
- Run backend with
php7.3 -S 127.0.0.1:8008 -t web web/router.php
- Run webpack dev server (frontend) with
cd src/frontend && npm run serve
- Enter http://localhost:8080 to see the application.
- Login with
[email protected]
andpass
(this is a sample account).
- See what needs to be done or create an issue you would like to solve.
- Tell us you are willing to help with the issue in comments.
- Fix the issue on a separate branch on your fork.
- Make a Pull Request with your work.
- Become a contributor of SUPLA project!