This simple webserver written in flask is used to install a Shopify app on a Shopify store, by providing a complete hand-shake between the merchant and our services, allowing us to fetch an access token from the merchant.
- DB_NAME (no default): The name of the database to connect to.
- DB_USER (no default): The user to connect to the database with.
- DB_PASSWORD (no default): The password to connect to the database with.
- DB_HOST (no default): The host of the database.
- DB_PORT (no default): The port of the database.
- SHOPIFY_API_KEY (no default): The API key to connect to the Shopify API with.
- SHOPIFY_API_SECRET (no default): The API secret to connect to the Shopify API with.
- REDIS_HOST (no default): The host of the Redis server.
- REDIS_PORT (no default): The port of the Redis server.
In a terminal, do the following commands:
cd tools/;
nix-shell --run zsh;
cd ..;
poetry install;
# export all environment variables...
poetry run python3 -m installer.setup
You can use the available docker-compose file to run the server in production mode.