Skip to content

Overengineered application with products and carts. Operations available via REST API, API errors handled via Symfony kernel.exception, storage PostgreSQL, orm is Doctrine, framework is Symfony, Commandbus is tactician, "event bus" is simple implementation of observer pattern

Notifications You must be signed in to change notification settings

Crix4lis/cart-product-api

Repository files navigation

author: Michał Powała
source repository: cart-product-api

README

  1. For business requirements go to Task
  2. For API Documentation go to API Doc
  3. For Architecture/Design notes go to Architecture

First time

  1. Install docker and Docker Compose
  2. Clone repository
  3. Go to repository root directory
  4. Build and run containers: docker-compose up -d
  5. Get into cli docker container: docker-compose exec cli bash
  6. Install dependencies: composer install
  7. Generate schema: php bin/console doctrine:schema:create
  8. Run unit tests: bin/console/phpunit
  9. Start symfony server: php bin/console server:start *:8000
  10. Play with API with some kind of a Client, address is: http://127.0.0.1:8000

Not first time

  1. Go to repository root directory
  2. Run containers: docker-compose up -d
  3. Get into cli docker container: docker-compose exec cli bash
  4. Start symfony server: php bin/console server:start *:8000
  5. Play with API with some kind of a Client, address is: http://127.0.0.1:8000

About

Overengineered application with products and carts. Operations available via REST API, API errors handled via Symfony kernel.exception, storage PostgreSQL, orm is Doctrine, framework is Symfony, Commandbus is tactician, "event bus" is simple implementation of observer pattern

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published