- Web API server to calculate competition metrics for this machine learning competition platform
- This code is written in Python and Flask web framework.
cp .env.sample .env # Edit .env file according to your favorable environment
vim .env
Copy the following text to .env file. (In production environment, a strong key is recommended)
API_KEY_TOKEN=secret_key
API_KEY_TOKEN
is used for authorization for API client.- Therefore, in production environment,
API_KEY_TOKEN
value that cannot be easily guessed is recommended. - When client calls API, correct
API_KEY_TOKEN
value should be specified as header value ofX-Authorization-Key
(sample code)
start server with following command
python main.py
- Still work in progress
MIT