Secreto-like anonymous messaging app.
This project was bootstrapped with SvekteKit (JavaScript) and powered by Supabase.
Indonesian
Pengirim pesan anonim mirip secreto. Aplikasi ini menggunakan framework SvelteKit (JavaScript) yang didukung basisdata Supabase. Proyek ini terinspirasi dari@sooluh/secret
, dan orisinal milik @Reynadi531/secret-message
.
This project or documentation not completely finished, please post an issue to make any improvement.
# GitHub HTTPS
git clone https://github.com/sofaemha/rahasia.git
# GitHub SSH
git clone git@github.com:sofaemha/rahasia.git
Or directly download from GitHub.
# Installing package
npm install
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)
);
You need to create account first, the easiest way is sign-in using github account. Then create a new database project, copy code above into integrated terminal, and done.
Environment variable needed :
PUBLIC_SUPABASE_URL=
PUBLIC_SUPABASE_ANON_KEY=
PUBLIC_APPLICATION_NAME=
Optional environment variable
PUBLIC_APPLICATION_TITLE=
PUBLIC_META_APPLICATION_DESCRIPTION=
PUBLIC_META_APPLICATION_KEYWORD=
PUBLIC_APPLICATION_DESCRIPTION=
PUBLIC_APPLICATION_ANALYTICS=
Don't forget to use single or double quote for HTML preview.
To run local server use :
npm run dev -- --open
To check problem in all file on every folder :
# One time only
npm run check
# Continue watching a problem
npm run check:watch
To build the website :
npm run build
To preview production build locally :
npm run preview
WARNING
This project NOT generate static file (SSG), you need to download adapter-static and setup some file. For further information please visit official documentation.
Originally this project belonged to :
Reynadi531/secret-message.
Modified by sooluh/secret.
Rebuilt by Sofa eMHa.
With an MIT License.