Giter Site home page Giter Site logo

bedrockstreaming / babitch Goto Github PK

View Code? Open in Web Editor NEW
22.0 33.0 11.0 745 KB

⛔️ DEPRECATED - Babitch is a project to record table soccer scores, archive them, and make them easily accessible for further analysis using a REST API.

Home Page: http://tech.m6web.fr/babitch-the-story-behind-our-table-soccer-web-application/

License: MIT License

PHP 88.18% ApacheConf 2.41% HTML 1.00% Shell 0.66% Nginx 0.46% Gherkin 7.28%

babitch's Introduction

Babitch Build Status

Many companies all over the world uses table soccer to build team spirit. Babitch is a project to record table soccer scores, archive them, and make them easily accessible for further analysis using a REST API.

Installation

Clone the project

$ git clone https://github.com/M6Web/Babitch.git
$ cd Babitch

Install dependencies

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install

Configure database connection

$ cp app/config/parameters.yml.dist app/config/parameters.yml

Edit this new file to setup your MySQL connection.

Use

The API documentation is available at http://babitch-server/api/doc/
Thanks to Stage1, you can access our master branch staging environment : http://master.m6web.babitch.stage1.io/api/doc/

Then, you have to create a client to access Babitch's API, or you can use ours : BabitchClient

Installation for dev

Clone the project

$ git clone https://github.com/M6Web/Babitch.git
$ cd Babitch

Install Vagrant and configure Vagrantfile :

$ cp Vagrantfile.dist Vagrantfile

Note : configure your own Vagrantfile if necessary.

$ vagrant up
$ vagrant ssh
$ cd /vagrant

Create MySQL database

$ mysql -uroot -e "CREATE DATABASE babitch DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;"

Install dependencies

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar install

Note : select default values to all questions.

Load fixtures

$  php app/console doctrine:fixture:load

You can now access the API doc at http://localhost:8888/api/doc.

Tests

Create test database

php app/console doctrine:database:create --env=test
php app/console doctrine:schema:create --env=test

Run tests

php bin/behat

Docker

To use Docker as simple user (logout after this command):

sudo usermod -aG docker $USER

Then deploy Babitch using deploy.sh script:

./docker/deploy.sh

Or manually copy sources into docker/webapp/sources/ directory and run the command below:

docker-compose up -d

You now have a Babitch instance listening on port 8081, Mysql on port 3306 and PHP-FPM on port 9000!

Credits

Developped by the Cytron Team of M6 Web.

License

Babitch is licensed under the MIT license.

babitch's People

Contributors

adriensamson avatar dipston avatar fdubost avatar kuikui avatar nchaulet avatar odolbeau avatar oziks avatar skwi avatar

Stargazers

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

Watchers

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

babitch's Issues

Status page

Create a /status route, returning a 200 HTTP code, and some basic stats.

Know position of all players on autogoal

Today, only the goaler and conceider information are sent on a goals.
The problem is that on autogoal, it's impossible to know players position of the other team.

Any idea ?

Because, it's a problem for some stats :

  • Number of goals conceided by ballsplayed when on defense
  • Number of goals score by ballsplayed when on attack
    ...

Players API limit to 20 players

Is it possible to rise the limit per page to 50 element instead of 20 ?
Because, now, some players can't be selected in the client side because of the pagination. it will be painful to do multiple requests for having all clients in the BabitchClient

Post player doesn't work in api/doc

The two fields available in the api/doc sandbox post v1/players doesn't work (422 unprocessable entity)

Instead of "player[name]" and "player[email]", the api needs only "mail" and "email"

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.