Giter Club home page Giter Club logo

symfony's Introduction

symfony

An example application using Symfony Framework.

GitHub Actions Workflow Status GitHub License Codecov

Configuration

Create custom configuration files in the project root directory.

Create .env.local and set it as docker environment variables file.

APP_ENV=dev
APP_NAME=symfony
APP_PORT=8030
APP_URL=http://localhost:8030

DATABASE_URL=postgresql://admin:password@postgres:5432/symfony?serverVersion=15&charset=utf8
MAILER_DSN=smtp://mailcatcher:1025
MESSENGER_TRANSPORT_DSN=amqp://rabbitmq:5672/%2f/messages
REDIS_DSN=redis://redis:6379?timeout=1&read_timeout=1

SYMFONY_IDE=idea://open?file=%f&line=%l&/opt/project>/local/path

Create codeception.yml with the following set of parameters.

params:
  - .env
  - .env.local
  - .env.test

Development

Run all development services or specified containers as you need.

$ docker-compose --env-file .env.local up -d [--no-deps] [containers]

Main application containers list.

application crontab messenger migration

Use the following command when you need some data in the local database.

$ composer load-fixtures

The xdebug extension is already included in the project and is activated for development environment.

All you need to do is configure the debugger in the IDE, enter the required key and set up directory mapping.

Architecture

This RESTful application uses Domain-Driven Design (DDD) with Command-Query Separation (CSQ) principles and provides JSON-based contracts with JSON Web Token (JWT) authorization.

┌──────────────────────────────────────────────────────────┐
│                          Domain                          │
└──────────────────────────────────────────────────────────┘
        │                    │                    │
┌────────────────┐   ┌────────────────┐   ┌────────────────┐
│  Application   │ ─ │  Presentation  │   │ Infrastructure │
└────────────────┘   └────────────────┘   └────────────────┘
        │                    │                    │
┌────────────────┐   ┌────────────────┐   ┌────────────────┐       
│    Services    │   │     Client     │   │   3rd-party    │       
└────────────────┘   └────────────────┘   └────────────────┘

Domain: entities, events, exceptions and interfaces that do not have a specific implementation.

Application: services, listeners and other parts of the application that perform core and business logic.

Infrastructure: adapters and repositories that provide low-level access to resources and 3rd-party libraries.

Presentation: controllers, console commands, translations and views for interacting with the client.

Documentation

You can easily access API documentation via URL.

http://localhost[:app-port]/docs

symfony's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

satiric cssailing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.