API Endpoints for games supplied by The Global Digital Library.
- node version should be 10 or above (to check
node -v) or use nvm. - serverless should be installed globally (
npm install -g serverless) - pyenv should be installed (
brew install pyenv) - pyenv-virtualenv should be installed (
brew install pyenv-virtualenv)
cd game-service/npm install
# 1. Activate pyenv - add to ~/.bash_profile
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
# 2. Create virtual-env for service
pyenv virtualenv -p python3.7 3.7.0 game-service`
# 3. Activate virtualenv
pyenv activate game-service
# 4. Install depenencies
cd game-service
pip install -r requirements.txt
# If part of GDL-team:
gdl deploy local game-service
# If not part of GDL-team:
cd game-service
./run_local.sh #This will probably fail unless all env-variables are set.