Install dependencies:
yarnThis is a basic Next.js app. Run the development server:
yarn devAll configuration is done through environment variables. Default values are provided in .env.development for development.
Available options are:
-
STRIKE_API_TOKENToken for the Strike API -
STRIKE_API_URLURL of the Strike API. e.g. https://api.strike.me/v1 -
STRIKE_API_SCOPE
API Scopes to request. See https://docs.strike.me/api/ for possible values. e.g. 'openid offline_access profile partner.invoice.read' -
STRIKE_IDENTITY_SERVER_URL
URL of the Strike Identity Server. e.g. https://auth.strike.me -
STRIKE_IDENTITY_SERVER_CLIENT_ID
Strike OAuth Client ID. e.g. strike-oauth-example -
STRIKE_IDENTITY_SERVER_CLIENT_SECRET
Strike OAuth Client Secret. e.g. 1234567890 -
NEXTAUTH_SECRET
Secret used to encrypt the NextAuth.js JWT. e.g. jae6Yoox5eeMaewuzookeib5ieMoo9ce -
WEBHOOK_SECRETSecret used to sign webhook payload bodies coming from Strike. -
DATABASE_URLURL of Postgres database.
View a demo at: https://paymeinb.tc