Skip to content

Example implementation of Connect Sessions (buying & managing subscriptions) for our guides

License

Notifications You must be signed in to change notification settings

gigs/connect-sessions-buy-manage-example

Repository files navigation

Connect Sessions Buy & Manage example

This application showcase how Connect Sessions can be used to buy and manage phone plans through Connect from your existing application. This is a developer reference.

To get the most out of this, please read the associated guide.

If you just want to read the code, please start at app/(purchase) to learn about buying plans and app/(manage) to learn about managing existing plans.

If you want to run the application locally, please refer to the setup section.

Further resources:

Setup

In order to run this example locally, you need:

  • an existing Project with Connect enabled and at least one plan and one add-on configured
  • a valid API key

To set up the example:

Clone the repository

git clone https://github.com/gigs/connect-sessions-buy-manage-example.git

Install dependencies

cd connect-sessions-buy-manage-example
npm install

Create an .env.local file

cp .env.example .env.local

Set the required environment variables:

  • GIGS_PROJECT: The name of your project (the yourproject part from your yourproject.gigs.com Connect url)
  • GIGS_API_KEY: Your API key

Start the app

npm run dev

The application should now be running at http://localhost:3000

About

Example implementation of Connect Sessions (buying & managing subscriptions) for our guides

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •