Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

A starter repository using Nuxt.js to create a Space plugin at Storyblok.

Notifications You must be signed in to change notification settings

storyblok/serverless-custom-app-starter

Repository files navigation

⚠️ DEPRECATION NOTICE ⚠️

This template repository (serverless-custom-app-starter) is deprecated and no longer actively maintained or recommended.

Please refer to the new central repository, storyblok/space-tool-plugins, for examples, boilerplates, and the standard approach to developing Space Plugins (or Tool Plugins) for Storyblok. This new location provides updated resources and represents the standard going forward.

  • ➡️ New Space Plugin projects should use the resources found in storyblok/space-tool-plugins.
  • ➡️ Existing projects based on this template should refer to storyblok/space-tool-plugins for updates and best practices.

Find the new resources here:

Thank you for your understanding.

Serverless Custom App in Storyblok

App preview image

Example App to start with in Storyblok.

Based on our Workflow App

Tutorial

This repository is the end result of following our How to Build a Serverless Custom App with Storyblok, Grant and Supabase tutorial.

Firstly, to create an app on Storyblok, you need to enter to the our partner program.

Installation

# clone this repository
$ git clone https://github.com/storyblok/serverless-custom-app-starter.git

# Enter the directory
$ cd serverless-custom-app-starter

# install dependencies
$ npm install

Environment Variables

To run the project you will need to set up a few serverless functions on vercel.

Rename the file .env-example to .env and fill out the variables.

STORYBLOK_CLIENT_ID=Q...==
STORYBLOK_CLIENT_SECRET=MJ...Q==
STORYBLOK_CLIENT_REDIRECT_URI=https://vercel-dashboard.lisilinhart.vercel.app/connect/storyblok/callback
SUPABASE_DB_URL=https://ig...di.supabase.co
SUPABASE_PUBLIC_KEY=eyJ...Uk

Deploy

This app is like any other Nuxt app, so, the deploy is the same (check the Nuxt documentation about this). Since the tutorial makes use of serverless functions on Vercel, we recommend deploying it to Vercel with the following command:

$ npm run build
$ npm run generate
$ vercel

The functions in the api folder will automatically be deployed as serverless functions. Make sure to set all environment variables in the .env-example in Vercel as well. See their docs on how to do this.


Powered by Storyblok

About

A starter repository using Nuxt.js to create a Space plugin at Storyblok.

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •