This repo contains the source code for the SaaS REST API.
Host: localhost
Port: 4433
API Key: helloworld
Change directory into the repo root directory.
cd SAAS-backend
Run the stack.
docker-compose up -d
Execute a test request.
curl -k -H 'email: [email protected]' -H 'X-API-Key: helloworld' https://localhost:4433/organizations
The response should be 200 status code and an empty list - []
For Stripe to work, you must login to Stripe and get the webhook secret.
docker run --rm -it -v /full/path/to/backend/stripe:/root/.config/stripe stripe/stripe-cli:v1.5.14 login
docker run --rm -it -v /full/path/to/backend/stripe:/root/.config/stripe stripe/stripe-cli:v1.5.14 listen --print-secret
STRIPE_WEBHOOK_SECRET: whsec_RiTChYZIBbFJNgWE9xhh817qC1lZhnRf
The API is documented automatically, to access the API documentation and execute test requests visit the below URL:
https://localhost:4433/apidocs
If you mount the gunicorn socket directory for proxying via NGINX, that directory should allow access to the app and webserver user.
chown -R 10066:10033 sock
Content type
Image
Digest
Size
99 MB
Last updated
almost 5 years ago
docker pull encircle/saas_backend