Skip to content

Outil de mise en relation entre étudiants et recruteurs

Notifications You must be signed in to change notification settings

BouBooo/Atoute-API

Repository files navigation

Atoute 👋 - back

pipeline status

Prerequisites

Install the docker stack as defined in the tools repository

Install

Connect to the apache container and follow steps :

# Connect to container
docker-compose exec php bash

cd back/

# Composer
composer install --no-interaction

# Install a fresh & empty database
php bin/console doctrine:database:create --if-not-exists
php bin/console doctrine:schema:update --force

Try local

http://back-local.atoute.com:8080

GrumPHP

GrumPHP Documentation.
Be sure that GrumPHP is connected to your commits. Verify that the 2 files into git_hooks/ have been copied in your project folder .git/hooks/.
If they are not present, copy them :

cp git_hooks/* .git/hooks/

chmod +X .git/hooks/*

When you do a commit, GrumpPHP is triggered and execute some tasks. You can find them in grumphp.yml.
Some tasks have configuration here :

Consuming Messages

Inside php container

# Running the worker
# use -vv to see details about what's happening
php bin/console messenger:consume async

Dashboard is available to retry or reject failed tasks :

http://localhost:8080/admin/jobs/

Unit tests

Inside php container

# Execute all tests inside tests directory
php bin/phpunit

# Excecute particular test
php bin/phpunit --filter SecurityControllerTest

More

Mysql container available here :

# Connect to container
docker-compose exec mysql bash

About

Outil de mise en relation entre étudiants et recruteurs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages