This is a boilerplate for creating a WebApp using Stencil + Supabase + Stencil Store.
- Supabase setup
- Stencil Store setup
- Login / Register / Logout functionality (Basic one)
- Protecting routes (router-guard) that are accessed after login
To start using this boilerplate, clone this repo to a new directory:
git clone https://github.com/ftonato/stencil-supabase.git
and run:
npm install
Setup Supabase configuration
Please setup Supabase configuration in the file
src -> config -> config.ts
const supabaseConfig = {
supabaseUrl: '',
supabaseKey: ''
};
You can find more about Supabase Client config on the official documentation page.
To start a project, run:
npm run start
To build the app for production, run:
npm run build
To run the unit tests once, run:
npm run test
To run the unit tests and watch for file changes during development, run:
npm run test.watch
You can check the details of the structure of our project through this file
- Pull requests and 🌟 stars are always welcome.