Skip to content

OmarMakled/symfony-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  • To start the project you need to run docker compose up -d it will pull the images if not exists and spin up the containers.

  • Run make install to install dependencies if this is the first time. 🎯

Run Tests

Run make test to execute all tests

Screenshot from 2023-11-12 13-38-40

Send Newsletter

Run make cron it runs every 1 minute for testing purposes or on demand run inside container ./bin/console app:send-activation-emails -- "-1 day" This command has a duration as an argument the default is 1 week.

Screenshot from 2023-11-12 13-39-41

Run make remove-cron

API

Screenshot from 2023-11-12 13-38-22 /etc/init.d/cron status

Code standard

You can check the code against the PSR-12 coding standard make autofix

Stop/Start containers

Run make stop or make up to start containers again

Troublechute

  • /etc/init.d/cron status
  • /var/log/dev.log
  • http://localhost:8080/_profiler

DEMO

  • Installation
  • Validation
  • Fail Response
  • Success Response
  • Aspect