Skip to content

suciptoid/supalytic

Repository files navigation

Supalytic

Supalytic is a website analytic tracking alternative to Google Analytics. It is built with SvelteKit, Supabase auth, database (with timescale plugin for timeseries data) and deployed on Cloudflare pages.

Tis project is a hackaton project for Supabase Launch Week 8 and win as runner up for Most technically impressive category.

Developing

Once you've clone this project and installed dependencies with npm install (or pnpm install or yarn),

Create .env file and put your supabase credentials:

PUBLIC_SUPABASE_URL=
PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_KEY=

SUPABASE_SERVICE_KEY is required only for server side code

Database schema available under: supabase/schema.sql, we dont use migration for now.

start a development server:

npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open

Building

To create a production version of your app:

npm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.