https://github.com/ctwhome/top-sveltekit-with-supabase

https://github.com/ctwhome/top-sveltekit-with-supabase

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.0%) to scientific vocabulary
Last synced: 9 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: ctwhome
  • Language: Svelte
  • Default Branch: main
  • Size: 428 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 4 years ago · Last pushed over 4 years ago
Metadata Files
Readme

README.md

Svelte Starter Kit

Svelte Starter Kit is an opinionated boilerplate based off of SvelteKit, with all the bells and whistles you want ready, up and running when starting any Full-stack Svelte/Javascript project. Out of the box you get all the essentials - Typescript as the language choice - Tailwind CSS for quick styling without getting out of your HTML - ESLint and Prettier for static code analysis and code formatting - SEO pre-configured - All icons with unplugin-icons

with Supabase as the 3rd Party Persistence Layer for - Authentication System with Supabase GoTrue - User Profiles available on /profile as an example for Supabase PostgREST (CRUD API) - User Avatar which is Supbase Storage(AWS S3 backed effortless uploads) supported

Note: Refer the basic branch for a bare minimum starter structure with all the essentials

How to Setup?

If new to Supabase - Create account at Supabase - Create a Organisation, and a project

Once done, or if you already have a Supabase project - Copy the generated project's API authentication details from https://app.supabase.io/project/<your-awesome-svelte-project>/api/default?page=auth - Place the details in .env/.env.local as VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY - Install NPM dependencies

Svelte Start Kit supports profile and user avatars now. To get the profile table and storage ready, execute the following query at https://app.supabase.io/project/<your-awesome-svelte-project>/editor/sql

```sql -- Create a table for Public Profiles create table profiles ( id uuid references auth.users not null, username text unique, avatarurl text, website text, updatedat timestamp with time zone,

primary key (id), unique(username), constraint usernamelength check (charlength(username) >= 3) );

alter table profiles enable row level security;

create policy "Public profiles are viewable by everyone." on profiles for select using ( true );

create policy "Users can insert their own profile." on profiles for insert with check ( auth.uid() = id );

create policy "Users can update own profile." on profiles for update using ( auth.uid() = id );

-- Set up Storage! insert into storage.buckets (id, name) values ('avatars', 'avatars');

create policy "Avatar images are publicly accessible." on storage.objects for select using ( bucket_id = 'avatars' );

create policy "Anyone can upload an avatar." on storage.objects for insert with check ( bucket_id = 'avatars' ); ```

profiles table's chnages are not observed in real-time due to performance reasons. If needed, execute the following query sql begin; drop publication if exists supabase_realtime; create publication supabase_realtime; commit; alter publication supabase_realtime add table profiles;

and get started by running yarn dev

Why SvelteKit?

Landing from a different Full-stack UI framework(Next.js, NuxtJS, Angular Universal)? Here's few essential watches and readings - - An update on SvelteKit (Rich Harris on SvelteKit - SvelteSummit) - A short history of Svelte

Why Supabase?

  • https://aalam.in/blog/supabase-the-open-source-firebase-alternative (Supabase has storage now, and something better than functions could land anytime soon)

Building

Svelte Kit apps are built with adapters, which optimise your project for deployment to different environments.

By default, yarn build will generate a Node app that you can run with node build. To use a different adapter, add it to the devDependencies in package.json making sure to specify the version as next and update your svelte.config.cjs to specify your chosen adapter. The following official adapters are available:

See the adapter documentation for more detail

Owner

  • Name: Jesse Gonzalez
  • Login: ctwhome
  • Kind: user
  • Location: Amsterdam (Netherlands)
  • Company: Netherlands eScience Center

Research Engineer at @NLeSC

GitHub Events

Total
Last Year

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 3
  • Total Committers: 1
  • Avg Commits per committer: 3.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Jesús García c****w@c****m 3
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Dependencies

package.json npm
  • @supabase/supabase-js ^1.31.1 development
  • @sveltejs/adapter-node ^1.0.0-next.24 development
  • @sveltejs/adapter-static ^1.0.0-next.0 development
  • @sveltejs/kit ^1.0.0-next.85 development
  • @tailwindcss/forms ^0.5.0 development
  • @types/cookie ^0.4.1 development
  • @typescript-eslint/eslint-plugin ^5.15.0 development
  • @typescript-eslint/parser ^5.15.0 development
  • autoprefixer ^10.4.2 development
  • cookie ^0.4.2 development
  • cssnano ^5.1.4 development
  • daisyui ^2.8.0 development
  • eslint ^8.11.0 development
  • eslint-plugin-svelte3 ^3.4.1 development
  • husky ^7.0.4 development
  • lint-staged ^12.3.5 development
  • npm-run-all ^4.1.5 development
  • postcss ^8.4.8 development
  • postcss-load-config ^3.1.3 development
  • prettier ~2.5.1 development
  • prettier-plugin-svelte ^2.6.0 development
  • svelte ^3.46.4 development
  • svelte-feather-icons ^3.5.1 development
  • svelte-preprocess ^4.10.4 development
  • svelte-seo ^1.4.0 development
  • tailwindcss ^3.0.23 development
  • tslib ^2.3.1 development
  • typescript ^4.6.2 development
  • vite ^2.8.6 development
yarn.lock npm
  • 470 dependencies