├── .gitignore ├── LICENSE ├── Makefile ├── README.md ├── behat.yml.dist ├── composer.json ├── composer.lock ├── config ├── dev.json └── test.json ├── features ├── bootstrap │ ├── AuctionHelper.php │ ├── EndToEndAuctionHelper.php │ ├── EndToEndUserHelper.php │ ├── FeatureContext.php │ └── UserHelper.php ├── listing_running_auctions.feature ├── placing_a_bid.feature ├── user_login.feature ├── user_registration.feature ├── viewing_a_closed_auction.feature └── viewing_a_running_auction.feature ├── phpunit.xml.dist ├── src ├── Douche │ ├── Entity │ │ ├── Auction.php │ │ ├── AuctionRepository.php │ │ ├── User.php │ │ └── UserRepository.php │ ├── Exception │ │ ├── AuctionClosedException.php │ │ ├── BidRejectedException.php │ │ ├── BidTooLowException.php │ │ ├── Exception.php │ │ ├── IncorrectPasswordException.php │ │ └── UserNotFoundException.php │ ├── Interactor │ │ ├── AuctionList.php │ │ ├── AuctionListResponse.php │ │ ├── AuctionView.php │ │ ├── AuctionViewRequest.php │ │ ├── AuctionViewResponse.php │ │ ├── Bid.php │ │ ├── BidRequest.php │ │ ├── BidResponse.php │ │ ├── CurrencyConverter.php │ │ ├── PasswordEncoder.php │ │ ├── RegisterUser.php │ │ ├── RegisterUserRequest.php │ │ ├── RegisterUserResponse.php │ │ ├── UserLogin.php │ │ ├── UserLoginRequest.php │ │ └── UserLoginResponse.php │ ├── Repository │ │ ├── AuctionArrayRepository.php │ │ └── UserArrayRepository.php │ ├── Service │ │ ├── DumbCurrencyConverter.php │ │ ├── PairCurrencyConverter.php │ │ └── UppercasePasswordEncoder.php │ ├── Storage │ │ ├── File │ │ │ └── UserRepository.php │ │ └── Sql │ │ │ ├── AuctionRepository.php │ │ │ ├── Entity │ │ │ └── Auction.php │ │ │ └── Util.php │ ├── Value │ │ └── Bid.php │ └── View │ │ ├── AuctionView.php │ │ └── UserView.php └── DoucheWeb │ ├── ControllerResolver.php │ ├── ServiceProvider.php │ ├── app.php │ ├── console.php │ └── views │ ├── _footer.html.mustache │ ├── _header.html.mustache │ ├── _user_menu.html.mustache │ ├── auction_list.html.mustache │ ├── auction_view.html.mustache │ └── login.html.mustache ├── tests ├── integration │ └── Douche │ │ └── Storage │ │ └── Sql │ │ ├── AuctionRepositoryTest.php │ │ └── SqlTestCase.php └── unit │ ├── Douche │ ├── Entity │ │ └── AuctionTest.php │ ├── Interactor │ │ └── UserLoginTest.php │ ├── Service │ │ ├── DumbCurrencyConverterTest.php │ │ ├── PairCurrencyConverterTest.php │ │ └── UppercasePasswordEncoderTest.php │ └── Storage │ │ └── File │ │ ├── Fixtures │ │ └── users.json │ │ └── UserRepositoryTest.php │ └── DoucheWeb │ └── ControllerResolverTest.php └── web ├── css ├── bootstrap-responsive.css ├── bootstrap-responsive.min.css ├── bootstrap.css └── bootstrap.min.css ├── dev.php ├── front.php ├── img ├── glyphicons-halflings-white.png └── glyphicons-halflings.png ├── js ├── bootstrap.js └── bootstrap.min.js └── prod.php /.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | storage 3 | vendor 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/README.md -------------------------------------------------------------------------------- /behat.yml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/behat.yml.dist -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/composer.lock -------------------------------------------------------------------------------- /config/dev.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/config/dev.json -------------------------------------------------------------------------------- /config/test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/config/test.json -------------------------------------------------------------------------------- /features/bootstrap/AuctionHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/features/bootstrap/AuctionHelper.php -------------------------------------------------------------------------------- /features/bootstrap/EndToEndAuctionHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/features/bootstrap/EndToEndAuctionHelper.php -------------------------------------------------------------------------------- /features/bootstrap/EndToEndUserHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/features/bootstrap/EndToEndUserHelper.php -------------------------------------------------------------------------------- /features/bootstrap/FeatureContext.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/features/bootstrap/FeatureContext.php -------------------------------------------------------------------------------- /features/bootstrap/UserHelper.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/features/bootstrap/UserHelper.php -------------------------------------------------------------------------------- /features/listing_running_auctions.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/features/listing_running_auctions.feature -------------------------------------------------------------------------------- /features/placing_a_bid.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/features/placing_a_bid.feature -------------------------------------------------------------------------------- /features/user_login.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/features/user_login.feature -------------------------------------------------------------------------------- /features/user_registration.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/features/user_registration.feature -------------------------------------------------------------------------------- /features/viewing_a_closed_auction.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/features/viewing_a_closed_auction.feature -------------------------------------------------------------------------------- /features/viewing_a_running_auction.feature: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/features/viewing_a_running_auction.feature -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /src/Douche/Entity/Auction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Entity/Auction.php -------------------------------------------------------------------------------- /src/Douche/Entity/AuctionRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Entity/AuctionRepository.php -------------------------------------------------------------------------------- /src/Douche/Entity/User.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Entity/User.php -------------------------------------------------------------------------------- /src/Douche/Entity/UserRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Entity/UserRepository.php -------------------------------------------------------------------------------- /src/Douche/Exception/AuctionClosedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Exception/AuctionClosedException.php -------------------------------------------------------------------------------- /src/Douche/Exception/BidRejectedException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Exception/BidRejectedException.php -------------------------------------------------------------------------------- /src/Douche/Exception/BidTooLowException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Exception/BidTooLowException.php -------------------------------------------------------------------------------- /src/Douche/Exception/Exception.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Exception/Exception.php -------------------------------------------------------------------------------- /src/Douche/Exception/IncorrectPasswordException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Exception/IncorrectPasswordException.php -------------------------------------------------------------------------------- /src/Douche/Exception/UserNotFoundException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Exception/UserNotFoundException.php -------------------------------------------------------------------------------- /src/Douche/Interactor/AuctionList.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/AuctionList.php -------------------------------------------------------------------------------- /src/Douche/Interactor/AuctionListResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/AuctionListResponse.php -------------------------------------------------------------------------------- /src/Douche/Interactor/AuctionView.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/AuctionView.php -------------------------------------------------------------------------------- /src/Douche/Interactor/AuctionViewRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/AuctionViewRequest.php -------------------------------------------------------------------------------- /src/Douche/Interactor/AuctionViewResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/AuctionViewResponse.php -------------------------------------------------------------------------------- /src/Douche/Interactor/Bid.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/Bid.php -------------------------------------------------------------------------------- /src/Douche/Interactor/BidRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/BidRequest.php -------------------------------------------------------------------------------- /src/Douche/Interactor/BidResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/BidResponse.php -------------------------------------------------------------------------------- /src/Douche/Interactor/CurrencyConverter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/CurrencyConverter.php -------------------------------------------------------------------------------- /src/Douche/Interactor/PasswordEncoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/PasswordEncoder.php -------------------------------------------------------------------------------- /src/Douche/Interactor/RegisterUser.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/RegisterUser.php -------------------------------------------------------------------------------- /src/Douche/Interactor/RegisterUserRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/RegisterUserRequest.php -------------------------------------------------------------------------------- /src/Douche/Interactor/RegisterUserResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/RegisterUserResponse.php -------------------------------------------------------------------------------- /src/Douche/Interactor/UserLogin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/UserLogin.php -------------------------------------------------------------------------------- /src/Douche/Interactor/UserLoginRequest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/UserLoginRequest.php -------------------------------------------------------------------------------- /src/Douche/Interactor/UserLoginResponse.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Interactor/UserLoginResponse.php -------------------------------------------------------------------------------- /src/Douche/Repository/AuctionArrayRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Repository/AuctionArrayRepository.php -------------------------------------------------------------------------------- /src/Douche/Repository/UserArrayRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Repository/UserArrayRepository.php -------------------------------------------------------------------------------- /src/Douche/Service/DumbCurrencyConverter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Service/DumbCurrencyConverter.php -------------------------------------------------------------------------------- /src/Douche/Service/PairCurrencyConverter.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Service/PairCurrencyConverter.php -------------------------------------------------------------------------------- /src/Douche/Service/UppercasePasswordEncoder.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Service/UppercasePasswordEncoder.php -------------------------------------------------------------------------------- /src/Douche/Storage/File/UserRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Storage/File/UserRepository.php -------------------------------------------------------------------------------- /src/Douche/Storage/Sql/AuctionRepository.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Storage/Sql/AuctionRepository.php -------------------------------------------------------------------------------- /src/Douche/Storage/Sql/Entity/Auction.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Storage/Sql/Entity/Auction.php -------------------------------------------------------------------------------- /src/Douche/Storage/Sql/Util.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Storage/Sql/Util.php -------------------------------------------------------------------------------- /src/Douche/Value/Bid.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/Value/Bid.php -------------------------------------------------------------------------------- /src/Douche/View/AuctionView.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/View/AuctionView.php -------------------------------------------------------------------------------- /src/Douche/View/UserView.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/Douche/View/UserView.php -------------------------------------------------------------------------------- /src/DoucheWeb/ControllerResolver.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/DoucheWeb/ControllerResolver.php -------------------------------------------------------------------------------- /src/DoucheWeb/ServiceProvider.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/DoucheWeb/ServiceProvider.php -------------------------------------------------------------------------------- /src/DoucheWeb/app.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/DoucheWeb/app.php -------------------------------------------------------------------------------- /src/DoucheWeb/console.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/DoucheWeb/console.php -------------------------------------------------------------------------------- /src/DoucheWeb/views/_footer.html.mustache: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /src/DoucheWeb/views/_header.html.mustache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/DoucheWeb/views/_header.html.mustache -------------------------------------------------------------------------------- /src/DoucheWeb/views/_user_menu.html.mustache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/DoucheWeb/views/_user_menu.html.mustache -------------------------------------------------------------------------------- /src/DoucheWeb/views/auction_list.html.mustache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/DoucheWeb/views/auction_list.html.mustache -------------------------------------------------------------------------------- /src/DoucheWeb/views/auction_view.html.mustache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/DoucheWeb/views/auction_view.html.mustache -------------------------------------------------------------------------------- /src/DoucheWeb/views/login.html.mustache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/src/DoucheWeb/views/login.html.mustache -------------------------------------------------------------------------------- /tests/integration/Douche/Storage/Sql/AuctionRepositoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/tests/integration/Douche/Storage/Sql/AuctionRepositoryTest.php -------------------------------------------------------------------------------- /tests/integration/Douche/Storage/Sql/SqlTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/tests/integration/Douche/Storage/Sql/SqlTestCase.php -------------------------------------------------------------------------------- /tests/unit/Douche/Entity/AuctionTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/tests/unit/Douche/Entity/AuctionTest.php -------------------------------------------------------------------------------- /tests/unit/Douche/Interactor/UserLoginTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/tests/unit/Douche/Interactor/UserLoginTest.php -------------------------------------------------------------------------------- /tests/unit/Douche/Service/DumbCurrencyConverterTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/tests/unit/Douche/Service/DumbCurrencyConverterTest.php -------------------------------------------------------------------------------- /tests/unit/Douche/Service/PairCurrencyConverterTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/tests/unit/Douche/Service/PairCurrencyConverterTest.php -------------------------------------------------------------------------------- /tests/unit/Douche/Service/UppercasePasswordEncoderTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/tests/unit/Douche/Service/UppercasePasswordEncoderTest.php -------------------------------------------------------------------------------- /tests/unit/Douche/Storage/File/Fixtures/users.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/tests/unit/Douche/Storage/File/Fixtures/users.json -------------------------------------------------------------------------------- /tests/unit/Douche/Storage/File/UserRepositoryTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/tests/unit/Douche/Storage/File/UserRepositoryTest.php -------------------------------------------------------------------------------- /tests/unit/DoucheWeb/ControllerResolverTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/tests/unit/DoucheWeb/ControllerResolverTest.php -------------------------------------------------------------------------------- /web/css/bootstrap-responsive.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/web/css/bootstrap-responsive.css -------------------------------------------------------------------------------- /web/css/bootstrap-responsive.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/web/css/bootstrap-responsive.min.css -------------------------------------------------------------------------------- /web/css/bootstrap.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/web/css/bootstrap.css -------------------------------------------------------------------------------- /web/css/bootstrap.min.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/igorw/doucheswag/HEAD/web/css/bootstrap.min.css -------------------------------------------------------------------------------- /web/dev.php: -------------------------------------------------------------------------------- 1 |