Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0cfa6d3
Update product-actions.tsx
localer-sub Aug 3, 2025
ac7adb9
feat: Update configuration and components for improved functionality
raicdev Aug 3, 2025
06b9e46
fix: Fixed redirect link to login page (#7)
raicdev Aug 3, 2025
57eba2b
feat: Implement comprehensive comments system with enhanced features
raicdev Aug 3, 2025
a4bb454
fix: Improve type safety in CommentsSection component
raicdev Aug 3, 2025
fb64d45
feat: Add comments, refactor code, better ux (#8)
raicdev Aug 3, 2025
650431b
feat: Add product visibility and og image for products
raicdev Aug 3, 2025
8a3188b
chore: Remove bun.lock file and update package dependencies
raicdev Aug 3, 2025
1375465
wip: sidebar + home
Aug 4, 2025
6aaa97b
wip: sidebar + home
ri0n-dev Aug 5, 2025
8833f77
Revert "wip: sidebar + home"
ri0n-dev Aug 5, 2025
d014a9b
add: play warnign
ri0n-dev Aug 6, 2025
a2bf55f
feat: Add product visibility and og image for products (#9)
raicdev Aug 6, 2025
22bafb8
add: search
ri0n-dev Aug 6, 2025
b5b7a2f
fix: hover pointer
ri0n-dev Aug 6, 2025
6ceb1d5
add: sidebar notification
ri0n-dev Aug 6, 2025
2dec547
add: site header and responsive support
ri0n-dev Aug 6, 2025
a102ff1
Merge branch 'dev' into redesign
raicdev Aug 6, 2025
9f9eafe
feat: Redesign (#10)
raicdev Aug 6, 2025
fc08af7
refactor: Refactor error handling and add caching headers in OG image…
raicdev Aug 7, 2025
fae6f22
Merge branch 'teamzisty:dev' into dev
raicdev Aug 7, 2025
91a1d7f
fix: Update dependencies and remove visibility filter from app router
raicdev Aug 7, 2025
5b45824
refactor: Migrate from @radix-ui to radix-ui for component imports
raicdev Aug 7, 2025
34807f2
chore(deps): Update dependencies (#12)
raicdev Aug 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Database

DATABASE_URL="postgresql://postgres:password@localhost:5432/postgres"

# Better Auth

NEXT_PUBLIC_BETTER_AUTH_URL=http://localhost:3000
BETTER_AUTH_SECRET="BETTER_AUTH_SECRET"

# OAuth Client IDs

NEXT_PUBLIC_GOOGLE_CLIENT_ID="your-client-id" # public because it is required for Google One Tap
GOOGLE_CLIENT_SECRET="your-client-secret"

GITHUB_CLIENT_ID="your-client-id"
GITHUB_CLIENT_SECRET="your-client-secret"

# Other

NEXT_PUBLIC_APP_URL="http://localhost:3000" # Change to your production URL in production
RESEND_API_KEY="re_....."
UPLOADTHING_TOKEN="ey....."
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ yarn-error.log*

# env files (can opt-in for committing if needed)
.env*
!.env.example

# vercel
.vercel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ CREATE TABLE "sessions" (
"ip_address" text,
"user_agent" text,
"user_id" text NOT NULL,
"impersonated_by" text,
CONSTRAINT "sessions_token_unique" UNIQUE("token")
);
--> statement-breakpoint
Expand All @@ -56,6 +57,10 @@ CREATE TABLE "users" (
"created_at" timestamp NOT NULL,
"updated_at" timestamp NOT NULL,
"two_factor_enabled" boolean,
"role" text,
"banned" boolean,
"ban_reason" text,
"ban_expires" timestamp,
CONSTRAINT "users_email_unique" UNIQUE("email")
);
--> statement-breakpoint
Expand All @@ -69,41 +74,60 @@ CREATE TABLE "verifications" (
);
--> statement-breakpoint
CREATE TABLE "products" (
"id" text PRIMARY KEY NOT NULL,
"id" text PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"author_id" text NOT NULL,
"name" text NOT NULL,
"description" text,
"short_description" text,
"price" text NOT NULL,
"images" jsonb,
"icon" text,
"links" jsonb,
"category" jsonb[],
"license" text,
"created_at" timestamp NOT NULL,
"updated_at" timestamp NOT NULL
"updated_at" timestamp NOT NULL,
"deleted_at" timestamp,
"deleted_by" text,
"deletion_reason" text
);
--> statement-breakpoint
CREATE TABLE "bookmarks" (
"id" text PRIMARY KEY NOT NULL,
"id" text PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"user_id" text NOT NULL,
"product_id" text NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE TABLE "recommendations" (
"id" text PRIMARY KEY NOT NULL,
"id" text PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"user_id" text NOT NULL,
"product_id" text NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL
);
--> statement-breakpoint
CREATE TABLE "notifications" (
"id" serial PRIMARY KEY NOT NULL,
"id" text PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"user_id" text NOT NULL,
"action" text NOT NULL,
"target" text NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL,
"read" boolean DEFAULT false NOT NULL,
"actor_id" text
"actor_id" text,
"metadata" text
);
--> statement-breakpoint
CREATE TABLE "comments" (
"id" text PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
"product_id" text NOT NULL,
"author_id" text NOT NULL,
"parent_id" text,
"content" text NOT NULL,
"created_at" timestamp DEFAULT now() NOT NULL,
"updated_at" timestamp DEFAULT now() NOT NULL,
"deleted_at" timestamp,
"deleted_by" text,
"deletion_reason" text
);
--> statement-breakpoint
ALTER TABLE "accounts" ADD CONSTRAINT "accounts_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
Expand All @@ -114,4 +138,10 @@ ALTER TABLE "products" ADD CONSTRAINT "products_author_id_users_id_fk" FOREIGN K
ALTER TABLE "bookmarks" ADD CONSTRAINT "bookmarks_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "bookmarks" ADD CONSTRAINT "bookmarks_product_id_products_id_fk" FOREIGN KEY ("product_id") REFERENCES "public"."products"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "recommendations" ADD CONSTRAINT "recommendations_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "recommendations" ADD CONSTRAINT "recommendations_product_id_products_id_fk" FOREIGN KEY ("product_id") REFERENCES "public"."products"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "recommendations" ADD CONSTRAINT "recommendations_product_id_products_id_fk" FOREIGN KEY ("product_id") REFERENCES "public"."products"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "comments" ADD CONSTRAINT "comments_product_id_products_id_fk" FOREIGN KEY ("product_id") REFERENCES "public"."products"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "comments" ADD CONSTRAINT "comments_author_id_users_id_fk" FOREIGN KEY ("author_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
ALTER TABLE "comments" ADD CONSTRAINT "comments_parent_id_comments_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."comments"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
CREATE INDEX "comments_product_id_idx" ON "comments" USING btree ("product_id");--> statement-breakpoint
CREATE INDEX "comments_parent_id_idx" ON "comments" USING btree ("parent_id");--> statement-breakpoint
CREATE INDEX "comments_created_at_idx" ON "comments" USING btree ("created_at");
1 change: 1 addition & 0 deletions drizzle/0001_crazy_iron_patriot.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "products" ADD COLUMN "visibility" text DEFAULT 'public' NOT NULL;
5 changes: 0 additions & 5 deletions drizzle/0001_right_thing.sql

This file was deleted.

6 changes: 0 additions & 6 deletions drizzle/0002_absurd_warpath.sql

This file was deleted.

1 change: 0 additions & 1 deletion drizzle/0004_good_lady_deathstrike.sql

This file was deleted.

3 changes: 0 additions & 3 deletions drizzle/0005_certain_sabretooth.sql

This file was deleted.

Loading