Skip to content

Latest commit

 

History

History
82 lines (48 loc) · 2.1 KB

00-development.md

File metadata and controls

82 lines (48 loc) · 2.1 KB

Development environment

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

Set up

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 running make reset.

The application is now running and can be accessed at http://localhost:81.

Admin credentials

Use the following credentials to activate your users:

Other fixtures

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.

Accessing the application container

If you detach from the application container, you can reconnect by running:

docker-compose exec php bash

Connecting to the database

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.

Rebuild Docker images

Docker images can be rebuilt with the make build command.

Shutting down all containers

Docker containers can be stopped with the make stop command.

Go back