Current branch deployed: templates/with-manual-form-and-vee-validate
This template should help get you started developing with Vue 3 in Vite.
It is an opinionated template that uses:
- Vue 3
- Vue Router with Unplugin Vue Router
- Pinia
- VeeValidate for the forms
- VueUse
- and the awesome Supabase for the backend
The boilerplate contains .bashrc file with handy commands for Supabase CLI and more. To use it, run:
source .bashrcYou can install Supabase CLI with Scoop.
You'll need to create and fill a .env file from the .env.prod available.
You'll need to create an account on Supabase to fill the following variables.
The values for Supabase variables are found under Project Settings blade > API blade in your project dashboard:
- URL = variable
VITE_SUPABASE_URL - anon public = variable
VITE_SUPABASE_KEY - service_role secret = variable
VITE_SUPABASE_PROJECT_SERVICE_ROLE
IMPORTANT: some changes are planned in 2025 regarding API keys.
The VITE_TESTING_USER_EMAIL is used to seed the database.
The SUPABASE_PROJECT_ID is used to run the custom commands sp-link-env and sp-gen-types on your local machine. See .bashrc.
The SUPABASE_PROJECT_PASSWORD is used to run the custom command sp-link-env on your local machine. See .bashrc.
The values for hCaptcha variables are found on your account:
- Secret under the settings page or at account creation = variable
VITE_HCAPTCHA_SECRET - Site key under the sites page = variable
VITE_HCAPTCHA_SITEKEY
VSCode + Volar (and disable Vetur).
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
See Vite Configuration Reference.
npm install
# Or
npm inpm run dev
# Or, if using the .bashrc
ndnpm run build
# Or, if using the .bashrc
nbLint with ESLint
npm run lintTo use Semantic Release, you need to follow this complete guide to create your GitHub App installed on your account only to give it force-push rights when semantic-release workflow runs.
Or you can simply use the tag-release.sh script in the repository root, for a simplier but manual step.
-
Install it with Scoop
-
Initialize your
.envSUPABASE_PROJECT_ID=[set project id available on https://supabase.com/dashboard/project and by selecting the target project] SUPABASE_PROJECT_PASSWORD=[the password you chose when creating the project] VITE_SUPABASE_URL=https://[set project id].supabase.co VITE_SUPABASE_KEY=[see https://supabase.com/dashboard/project/[your project id]/settings/api-keys > "Publishable key"] VITE_TESTING_USER_EMAIL="[pick a working email, Yopmail works great => http://yopmail.com/]" VITE_SUPABASE_PROJECT_SERVICE_ROLE=[see https://supabase.com/dashboard/project/[your project id]/settings/api-keys > "Secret keys"] VITE_HCAPTCHA_SECRET=[see https://docs.hcaptcha.com/#integration-testing-test-keys] VITE_HCAPTCHA_SITEKEY=[see https://docs.hcaptcha.com/#integration-testing-test-keys] -
Run
source .bashrcto load the bash aliases -
Run
sp-initand select:Generate VS Code settings for Deno? [y/N] N Generate IntelliJ Settings for Deno? [y/N] N -
Run
sp-loginand follow the instructions.⚠️ MAKE SURE THE DEFAULT BROWSER AND WINDOWS IS ALREADY LOGGED IN TO SUPABASE⚠️ . -
Run
sp-link-env -
Run
sp-db-rsto reset and seed the database. -
Run
npm run dev -
Navigate to Mail client (if Yopmail and load the inbox of the email you've set in the env variable
VITE_TESTING_USER_EMAIL) -
Open the email recieved fron Supabase and click "Confirm" link
-
Open the application and log in.
-
You're done! ✨