All Projects → BedrockStreaming → Babitch

BedrockStreaming / Babitch

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

Programming Languages

PHP
23972 projects - #3 most used programming language
Gherkin
971 projects
ApacheConf
554 projects

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].