GithubHelp home page GithubHelp logo

pokerhands's Introduction

The challenge

Details about the coding challenge can be found in the requirements.zip file

Installation and running

Clone the repository and run this command from the directory in which you want to install

composer install

Check that the upload directory is writable. When in doubt run

chmod 777 uploads

The database is already set up but in case you need to regenerate it, use the following command

php ./bin/SQLLIteCreateTable.php

Start the application using the php built-in webserver with the following command

composer start

From now on the application is accessible using

http://localhost:8080

Note that the application has been developed using PHP 7

PHP 7.1.23 (cli) (built: Feb 22 2019 22:19:32) ( NTS )

General Notes

Application is built using the Slim Framework v3 and my code that is not framework related boilerplate can be found in

./src/PokerHands/* 

Two routes are set up to server the index page and handle the file upload

./src/routes.php

The file upload is handled by the controller

./src/PokerHands/Controller/ImportController.php

To be done....

  • Add some unit tests, especially to validate the algorithm that calculates the hand value.
  • Replace the SQLite with a DB Server
  • Containerize the application. (There is already a docker-compose.yml but this hasn't been checked)

pokerhands's People

Contributors

gerkec97 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.