In this guide I will show you how to bundle your Sapper app with Discord OAuth that’s handled on the server side of your web application.
You should be familiar with the basic concepts of Sapper and Discord to get most out of this guide. If you are looking for a quick start template, you can use my sapper-discord-supabase-tailwind starter that has similar project structure than this guide offers.
To get started, we will need to create a new Sapper project with Rollup as the bundling tool:
npx degit "sveltejs/sapper-template#rollup" my-app
And install dependencies with npm install
We will need…
If you’re using Firebase as a authentication service for your application and you’re considering moving over to Supabase, the open-source alternative, this guide helps you walk through the migration.
This guide assumes you’re already familiar with Firebase and basic concepts of it. To begin with, we will need to retrieve few resources:
Anon public key. This can be found under your Supabase project’s settings, under the API section.
Database URL. This can be found on the same page as your anon public key.
This tutorial covers building a basic authentication for your Sapper application by using Supabase, the open-source Firebase alternative.
👉 Source code: https://github.com/msyyn/sapper-supabase-starter
Prior starting to develop, you will need to open a free Supabase account. Head over to https://supabase.io and complete registration flow.
Once you’ve created an account, you will need to create a new project.
I build complex things on the web and share my findings to help others learn too.