Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Connect API Code #1

Closed
wants to merge 7 commits into from
Closed

Add Connect API Code #1

wants to merge 7 commits into from

Conversation

rjwignar
Copy link
Owner

Adds Connect API example code from https://github.com/canva-sdks/canva-connect-api-starter-kit.
Requires a .env file in connect-api\demos\ecommerce_shop:

BACKEND_PORT=3001
BACKEND_URL=http://127.0.0.1:3001
FRONTEND_URL=http://127.0.0.1:3000
BASE_CANVA_CONNECT_API_URL=https://api.canva.com/rest
CANVA_CLIENT_ID="<CANVA_CLIENT_ID>"
CANVA_CLIENT_SECRET="<CANVA_CLIENT_SECRET>"
# See README for how to generate this
DATABASE_ENCRYPTION_KEY="<DATABASE_ENCRYPTION_KEY>"

To run, first navigate to the repository root then run the following commands:

cd connect-api
npm install
cd demos/ecommerce_shop
npm install
npm start

@rjwignar rjwignar closed this Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant