Skip to content

api-integration-samples/apigee-marketplace-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apigee Data Marketplace Sample

This project offers a sample marketplace frontend application for Apigee to offer publishing & subscription user flows for data, AI & API products. This is only a demo to show what is possible using the Headless API Distribution engine in Apigee (supporting any type of frontend framework). In this case the marketplace app uses SvelteKit as the frontend framework.

Prerequisites

  1. A GCP project with Apigee X deployed (subscription, paygo, or trial). This script will create a project & Apigee X instance in one go.
  2. Configure Identity Platform. Add the Google & Email/Password providers, then use Application Setup Details > apiKey and authDomain in the below steps in the .1.env.PROJECT_ID.sh file.
  3. Install the Apintegrate CLI tool in your shell for Apigee deployments.
  4. If you plan on using Gen AI models in the marketplace, optionally enable these third-party models:

Deployment

# clone repo and init project, creates .1.env.YOUR_PROJECT_ID.sh
`./.0.init.sh YOUR_PROJECT_ID`
# EDIT .1.env.YOUR_PROJECT_ID.sh and set variables. Set INTENRAL_DOMAINS to the domains of users who should be considered internal, add your email account as ADMIN_EMAIL.

# set env variables file (change PROJECT_ID to your project id)
source .1.env.YOUR_PROJECT_ID.sh

# run 2_create_resources.sh to create resources like a storage bucket and Apigee KVMs
./.2.create.resources.sh

# deploy Apigee APIs
./.3.deploy_apis.sh

# deploy Cloud Run service
./.4.deploy.services.sh

# run import data to setup Firebase db
./.5.import.data.sh

# OPTIONAL - update API Hub with some nice test data for teams, tags, etc..
./.6.update.apihub.sh

# start client
npm run dev

After deploying and running you can open the dev version in your browser at http://localhost:5173.

Open source libraries used

  • Svelte-JSON Editor - awesome JSON editor svelte control.
  • Rapidoc - very nice Open API spec documentation web element that is used for API docs.

Support

This is not an officially supported Google product.

About

An API, data & AI marketplace sample for Apigee on Google Cloud.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published