Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/debricked/backend-home-task


https://github.com/debricked/backend-home-task

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

## Introduction
This a base for Debricked's backend home task. It provides a Symfony skeleton and a Docker environment with a few handy
services:

- RabbitMQ
- MySQL (available locally at 3307, between Docker services at 3306)
- MailHog (UI available locally at 8025)
- PHP
- Nginx (available locally at 8888, your API endpoints will accessible through here)

See .env for working credentials for RabbitMQ, MySQL and MailHog.

A few notes:
- By default, emails sent through Symfony Mailer will be sent to MailHog, regardless of recipient.

## How to use the Docker environment
### Starting the environment
`docker compose up`

### Stopping the environment
`docker compose down`

### Running PHP based commands
You can access the PHP environment's shell by executing `docker compose exec php bash` (make sure the environment is up
and running before, or the command will fail) in root folder.

We recommend that you always use the PHP container's shell whenever you execute PHP, such as when installing and
requiring new composer dependencies.