You need at least php 7.1 with the extensions gd, iconv, json, mbstrng installed.
As well, you need Google Stackdriver, to isntall it:
pecl install stackdriver_debugger-alpha
In root and symfony directories, type make help
to get available commands.
- Build and run the application with
make run
. On first execution, this will build all Docker images needed to compose the network.
Once all containers are up, you will be connected to the application container and have access to a shell inside the Symfony installation.
- Inside the application container, install the project dependencies with
make install
and reset the database by runningmake reset
.
The application is now running and can be accessed at http://localhost:81.
Use the following credentials to activate your users:
Login: [email protected]
Password: [email protected]
In order to avoid sending real SMS or emails, or to have volunteers even without directory access, development environment includes a "Sandbox" button (at the bottom of every page when signed in).
You can generate your first volunteers from here.
If you detach from the application container, you can reconnect by running:
docker-compose exec php bash
MySQL server is listening on 127.0.0.1 port 3307. To connect, use:
mysql -h 127.0.0.1 -P 3307 -u root redcall
- Connecting to the local MySQL server
The local port of the container running the MySQL server is bound to the host port number 3307. Connect to 127.0.0.1:3307 in order to access the MySQL server (
mysql -P 3307 ...
).
From here, you can run the following commands to fully set-up the environment:
composer install
yarn install
yarn encore dev
Go to http://127.0.0.1:81 to access the project.
Docker images can be rebuilt with the make build
command.
Docker containers can be stopped with the make stop
command.