Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stevan-tosic/docker-base-environmnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Folders structure

  • api/ - Symfony4 application - API
  • client/ - React.js frontend application

Project setup

Application Health Check

  • Application has a series of check to validate that host machine has all dependencies and configuration set up
  • To run this check use the following command (if you are using docker run it inside the php container) php bin/console monitor:health
  • For more info about the tool look at the official documentation for LiipMonitorBundle

Code architecture

  • Class naming concise and intuitive. Duplicate names are ok. Differentiation is done by namespaces.
  • Slim Classes - One public method per class. Private methods are ok.
  • For the new API endpoints, use actions instead of controllers. Examples of AbstractAction.
  • Code is structured in folders that mimic GUI section that uses them. See example.
  • Use Repository Interface instead of injecting Doctrine implementations.
  • Repositories should contain only basic methods (findById, findBy, save). For more complex queries use QueryObjects.

Routes

  • Routes structured by Laravel REST convention - see here - table under Actions Handled By Resource Controller
  • Routes are structured to follow the resoure relations. For example to get all comments one message for one thread, the route would be /thread/{thread_id}/message/{message_id}/comments
  • Route parameters that do not uniquely define the resource should not be in route path, they shoud be in query params. For example, filters and pagination

Security

Standards

PHP static analysis tools used for reporting and pre-commit checks

Server configuration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published