Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/suciptoid/supalytic
Simple analytic, powered by @supabase
https://github.com/suciptoid/supalytic
analytic supabase
Last synced: about 2 months ago
JSON representation
Simple analytic, powered by @supabase
- Host: GitHub
- URL: https://github.com/suciptoid/supalytic
- Owner: suciptoid
- Created: 2023-08-04T14:56:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-25T14:35:36.000Z (over 1 year ago)
- Last Synced: 2024-05-02T05:20:12.666Z (8 months ago)
- Topics: analytic, supabase
- Language: Svelte
- Homepage: https://supalytic.pages.dev
- Size: 525 KB
- Stars: 20
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://supabase.com/blog/supabase-lw8-hackathon) and [win as runner up](https://supabase.com/blog/launch-week-8-hackathon-winners) 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:
```bash
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:
```bash
npm run build
```You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.