Serverless API for a best of breed headless architecture.
The Service API comes with the following features:
- User authentication with magic link
- Basket with cart validation
- Checkout with Stripe or Tillit
- A lot of Crystallize webhooks examples
For local deveopment you have these two files to help setting the secrets:
.env
Will be included in git. Typically includes the Crystallize tenant identifier and other things that are not considered sensitive information
.env.local
Sensitive information, excluded from git. Example of what goes here is Crystallize Access tokens, JWT token secret and payment provider client keys.
Learn more about how to work with Vercel serverless functions here: https://vercel.com/docs/serverless-functions/introduction