Skip to content

BFAI API is the restful API to serve contents to the BFAI client. Is built on top of symfony 4 and has an adapter to connect to redis. Is deployed onto production thanks to Docker.

Notifications You must be signed in to change notification settings

moriorgames/bfai-api

Repository files navigation

BFAI Api

Simple api to query for static data about the game.

Installation

Follow this steps to install and run the project

$ git clone https://github.com/moriorgames/bfai-api.git
$ cd bfai-api
$ php phars/composer.phar install
# Run the PHP built-in server
$ php -S localhost:5200 --docroot=public
# Shortcut to rebuild quickly the container
$ docker stop bfai_api && docker rm bfai_api && docker build -t moriorgames/bfai-api . && docker run -td --name bfai_api -p 5200:5200 moriorgames/bfai-api
# Install docker-compose on CoreOs
$ sudo su -
$ mkdir -p /opt/bin
$ curl -L "https://github.com/docker/compose/releases/download/1.19.0/docker-compose-$(uname -s)-$(uname -m)" -o /opt/bin/docker-compose
$ chmod +x /opt/bin/docker-compose
$ openssl req -nodes -newkey rsa:2048 -keyout moriorgames.key -out comodo.csr

About

BFAI API is the restful API to serve contents to the BFAI client. Is built on top of symfony 4 and has an adapter to connect to redis. Is deployed onto production thanks to Docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages