Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

sooluh/secret

Repository files navigation

👀 Secret

Secreto-like anonymous messaging app.
This project was bootstrapped with Vite (React) and powered by Supabase.

Warning
This project is not completely finished, nor is the documentation complete at all.

Supabase Setup

Query to create table messages:

CREATE TABLE messages (
  id BIGINT GENERATED ALWAYS AS IDENTITY NOT NULL,
  message TEXT DEFAULT '' NOT NULL,
  owner BOOL DEFAULT FALSE NOT NULL,
  active BOOL DEFAULT TRUE NOT NULL,
  parent BIGINT NULL,
  created TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,
  deleted TIMESTAMP WITH TIME ZONE DEFAULT NULL NULL,
  PRIMARY KEY (id),
  FOREIGN KEY (parent) REFERENCES messages (id)
);

App Development

Environment variable needed:

VITE_SUPABASE_URL=
VITE_SUPABASE_ANON=
VITE_APP_NAME=
VITE_APP_TITLE=
VITE_APP_DESCRIPTION=

To run local server use:

yarn dev

To build the website:

yarn build

License

Originally this project belonged to:
Reynadi531/secret-message
With an MIT License.

Rebuilt with MIT License anyway by Suluh S.