Welcome to the Planship demo app built with Nuxt 3 and Pinia. This app demonstrates the use of Planship for implementing subscription plans with feature and usage-based entitlements.
Clicker Demo is a hypothetical app that provides its customers with a few simple features, most notably buttons that can be clicked to generate clicks. The app offers three subscription plans, Small, Medium and Large, that provide access to different features and limits on the number of allowed clicks.
All of the pricing logic including subscription management, feature and usage entitlements, and usage metering, has been implemented with Planship.
To get started, sign up for Planship and navigate to the default organization that Planship created for you. You will see the Clicker Demo
product and the default Planship API security credentials.
Next, clone this repository and create a .env
file in the project root directory.
git clone git@github.com:planship/planship-nuxt-example.git
cd planship-nuxt-example
touch .env
Then, add your Planship API credentials to the .env
file.
PLANSHIP_API_CLIENT_ID=QNR32DJSDZ3ZI3ZJLMT6
PLANSHIP_API_CLIENT_SECRET=lCiTw5CBhO3RZvbC0fBGB89zMMF2jNf9
Finally, install all dependencies and run the app.
pnpm install
pnpm dev
To get started with Planship for your own product, check out the Planship integration guide. You may also want read more about core concepts like feature levers, metered usage, and plans.