react-starter-kit icon indicating copy to clipboard operation
react-starter-kit copied to clipboard

Getting started instructions no longer are accurate

Open delphimon opened this issue 4 months ago • 4 comments

It looks like you are in the middle of a slight rearchitecture and restructuring of the repository. As a result, the onboarding instructions in the readme file and the getting started file in the docs directly aren't in sync with each other, and following them doesn't get one up and running correctly. Could you please update one or both of those guides so that it is possible for someone to follow them from scratch and get the framework running successfully? It looks very interesting and I'd love to try it out for my project.

delphimon avatar Sep 04 '25 20:09 delphimon

issue i've found: db/drizzle.config.ts:27 the if (!process.env.DATABASE_URL.match(/^postgresql?:\/\/.+/)) conflicts with the URL in .env: DATABASE_URL=postgres://postgres:postgres@localhost:5432/example.

the https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING-URIS states it should be postgresql. .env should be updated.

elyran avatar Sep 30 '25 22:09 elyran

had many more issues,

like bun --filter @repo/db push results in

2025-09-30 22:28:28.343 UTC [85] ERROR:  function uuid_generate_v7() does not exist at character 58
2025-09-30 22:28:28.343 UTC [85] HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
2025-09-30 22:28:28.343 UTC [85] STATEMENT:  CREATE TABLE "identity" (
                "id" text PRIMARY KEY DEFAULT uuid_generate_v7() NOT NULL,
                "account_id" text NOT NULL,
                "provider_id" text NOT NULL,
                "user_id" text NOT NULL,
                "access_token" text,
                "refresh_token" text,
                "id_token" text,
                "access_token_expires_at" timestamp with time zone,
                "refresh_token_expires_at" timestamp with time zone,
                "scope" text,
                "password" text,
                "created_at" timestamp with time zone DEFAULT now() NOT NULL,
                "updated_at" timestamp with time zone DEFAULT now() NOT NULL
        );

(using PG v16 and v18 (tried both))

and the bun --filter @repo/db generate says migrations/meta/0000_snapshot.json data is malformed.

elyran avatar Sep 30 '25 22:09 elyran

ok, so replacing all uuid_generate_v7() instances with uuidv7() fixes the bun --filter @repo/db push command.

elyran avatar Sep 30 '25 22:09 elyran

another issue: after logging in (continue with email), the URL is http://localhost:5173/[object%20Object]

elyran avatar Sep 30 '25 22:09 elyran