Check-je-huis is a symfony application that was originally created for https://klimaat.stad.gent/checkjehuis/. It allows a user to check the parameters of his house and get recommendations on how to improve it.
Todo!
Minimum PHP 7.2 is required and composer to perform the installation.
The following steps can be followed to install the application
-
Clone this repository and go to the directory of the cloned repo
-
composer install
-
At the end of
composer install
create a.env
file based on.env.dist
. -
bin/console doctrine:migrations:migrate
-
Create the admin user:
5.1.
bin/console fos:user:create
and answer the prompts5.2.
bin/console fos:user:promote
and enter the username of the user you created in step 5.1 when prompted. EnterROLE_ADMIN
when prompted for the role. -
bin/console cache:clear && bin/console cache:warmup
-
Install the yarn dependencies:
yarn install
-
Build the assets:
yarn run encore prod
After the steps above are taken, make sure the application is reachable through
a URL. Make sure the vhost points to the app's public
folder.
The main configuration files reside in /config
.
The settings in the main files will be overridden with the config of the
environment (e.g.: config/packages/prod/doctrine.yml
).
The parameters from .env
will then be replaced in the resulting config.
Overview of the most used commands:
bin/console -e=prod
orbin/console -env=prod
- for production, always explicitly set the environment to prod
bin/console list
lists all available commands, optionally filtered by package- e.g.:
bin/console list doctrine:migrations
only lists the doctrine migration commands
- e.g.:
bin/console -e=prod cache:clear && bin/console -e=prod cache:warmup
clears and rebuilds basic bootstrap cachebin/console -e=prod doctrine:migrations:status
checks if the database is up-to-datebin/console -e=prod doctrine:migrations:migrate
update the database to the latest versionbin/console -e=prod fos:user:change-password
update the password for a user by username
- This application is based on Symfony 4. Pull requests are welcome!
- There are integrations with other websites and systems still present in this codebase. It can't be used as is ATM. We will look into making this more generic in the future, but can't guarantee any dates.