ISRP API Services
- Docker
- Google API Service Account Credentials for roleplay.org.il
- Log in to your roleplay.org.il Google Account and open the Google Developer console.
- Open the project "ISRP Web Service"
- From the menu select API & Services -> Credentials
- Click Create Credentials -> Service account key
- Either select existing account "isrp-api" or create "New service account" with role Project Editor
- Click "create"
- Save the downloaded JSON file as
service-account.json
in the root directory.
docker build -t isrp-api .
You have to repeat the build step if you change the library requirements in composer.json
Create a file named .secrets
in the root directory and add to it the following:
GOOGLE_APPLICATION_CREDENTIALS=/app/service-account.json
DRAGON_CLUB_SHEET=<Dragon club sheet ID>
docker run -ti --rm \
-v $(pwd)/src/:/app/src/ \
-v $(pwd)/service-account.json:/app/service-account.json \
--env-file=.secrets \
--name isrp-api isrp/isrp-api
To stop the server, run docker kill isrp-api