- 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 .envCopy the following text to .env file. (In production environment, a strong key is recommended)
API_KEY_TOKEN=secret_keyAPI_KEY_TOKENis used for authorization for API client.- Therefore, in production environment,
API_KEY_TOKENvalue that cannot be easily guessed is recommended. - When client calls API, correct
API_KEY_TOKENvalue should be specified as header value ofX-Authorization-Key(sample code)
start server with following command
python main.py- Still work in progress
MIT
