Skip to content

Repository files navigation

C-HackAPI

The C-Hack API

##Deployment The easiest method to deploy this software is with docker. Create a configuration file on the host. (See Section Config) Run a container with docker run -p <host_port>:80 -v <host_conf_file>:/etc/c-hack-api.conf cminushack/c-hack-api

##Config The config file are key value pairs like this: KEY = value. The value is in python notation. E.g. KEY = 'string' or KEY = ['string1', 'string 2'].

Config KeyExampleDescription
SQLALCHEMY_DATABASE_URIsqlite:////etc/data.dbThe uri to the database.
URI_BASE_PATH/The base path used to build uris
LOGGING_CONFIGS['logging_config.json']A list of logging config files.
DB_UNIQUE_CONSTRAIN_FAILUNIQUE constraint failedThe unique constraint failed message of the database in use. (To be able to return correct error codes)

Development

Setup dev env

# setup virtualenv
virtualenv venv # or python -m venv venv. venv/bin/activate
# install requirements
pip install -r requirements_developement.txt
pip install -r requirements.txt
pip install -e .

Start server

./start.sh

About

The internal API Server, various of our applications communicate through.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages