To run the development environment you need at least:
- Docker
- PHP 5.3 (to run Composer)
To install the application simply run the commands
make install
make app
To start the application and the server, run the following command
make run
If correctly configured, the application will be available at the address https://livres.localhost
The development stack is based on Docker (and Docker Compose) and Traefik.
The backend stack use:
- RediSearch as search engine
- Symfony as code framework
- ApiPlatform as API provider
- SQLite as database
The frontend stack use Svelte and Sass (SCSS)
The code quality stack use:
- For Svelte/Javascript
- For CSS/SCSS
- For PHP
To validate your code (to ensure that it meet the project quality requirement), you can use analyze
option of make
.
This command came in several variations:
analyze-php
to only check for PHP codeanalyze-svelte
to only check Svelte codeanalyze-css
to only validate CSS and SCSS codeanalyze
to do the three above in one go
make analyze
You can fix some errors automatically with the fix-code
option of make
.
The command came in several variations:
fix-code-php
to fix PHP coding standard as well as rearrange thecomposer.json
fix-code-svelte
to fix Svelte coding standardfix-code-css
to fix CSS and SCSS coding standardfix-code
to do the three above in one go
make fix-code
NOTICE: Please be careful, auto-fixing the code will make changes in your code, some changes can alter the behavior!
make demo
docker-compose exec php bin/console book:search:reindex
docker-compose exec php bin/console book:search:rebuild-suggestion
docker-compose exec php bin/console admin:create:user admin --role ROLE_ADMIN