The availability-check match-making algorithm of Fleet.io
To deploy the MMA server on your system, please refer to the following instructions:
- Clone this project and
cd
to it - Install Python > 3.5
- Create a virtual environment:
- Mac / Ubuntu:
python3 -m venv venv
- Windows:
py -3 -m venv venv
- Mac / Ubuntu:
- Activate the virtual environment
- Mac / Ubuntu:
. venv/bin/activate
- Windows:
venv\Scripts\activate
- Mac / Ubuntu:
- Install dependencies
pip install -r requirements.txt
- Initialize database
This will generate a SQLite database named
flask initdb
data.sqlite
(The database name can be configured inconfig.py
) - Generate fake data
To edit data, install SQLite3 and open the database using it
flask forge
- Run the MMA server
flask run -h <ip> -p <port>
- Send request to the server according to API described in
api_ref.md