Giter Club home page Giter Club logo

api-platform3-experiment's Introduction

Api-Platform Boilerplate

  1. If not already done, install Docker Compose (v2.10+)
  2. Run docker compose build --no-cache to build fresh images
  3. Run docker compose up --pull always -d --wait to start the project
  4. Open https://localhost in your favorite web browser and accept the auto-generated TLS certificate
  5. Run docker compose down --remove-orphans to stop the Docker containers.

Install API

composer require api

composer require make composer require symfony/orm-pack

Install Codeception

composer require --dev codeception/module-symfony --dev

composer require codeception/module-rest --dev

composer require codeception/module-doctrine2 --dev

composer require codeception/module-datafactory --dev

composer require codeception/module-asserts --dev

composer require codeception/module-phpbrowser --dev

Config Codeception

File codeception.yml created        <- global configuration
tests/unit created                  <- unit tests
tests/unit.suite.yml written        <- unit tests suite configuration
tests/functional created            <- functional tests
tests/functional.suite.yml written  <- functional tests suite configuration
tests/acceptance created            <- acceptance tests
tests/acceptance.suite.yml written  <- acceptance tests suite configuration
Codeception is installed for acceptance, functional, and unit testing
Next steps:
1. Edit tests/acceptance.suite.yml to set the url of your application. Change PhpBrowser to WebDriver to enable browser testing.
2. Edit tests/functional.suite.yml to enable Doctrine module if needed.
3. Create your first acceptance test using vendor/bin/codecept g:cest Acceptance First
4. Write your first test in tests/acceptance/FirstCest.php
5. Run tests using: vendor/bin/codecept run

Fixtures

composer require doctrine/doctrine-fixtures-bundle --dev

composer require zenstruck/foundry --dev

Events

event_listeners_backward_compatibility_layer:true

php bin/console debug:event-dispatcher

Errors

Session was used while the request was declared stateless fix avec

api_platform:
    # ...
    defaults:
        stateless: false

api-platform3-experiment's People

Contributors

aratinau avatar

Watchers

 avatar

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.