Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/debricked/backend-home-task
https://github.com/debricked/backend-home-task
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/debricked/backend-home-task
- Owner: debricked
- License: mit
- Created: 2022-06-02T16:24:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-03T19:47:24.000Z (about 1 year ago)
- Last Synced: 2024-01-03T20:36:52.176Z (about 1 year ago)
- Language: PHP
- Size: 28.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.