- Update
name
in package.json fromstarmode-template
to something else - Update the
id
in src/inngest/client.ts fromstarmode-template
to something else
- Vercel https://vercel.com/starmode
- add new project
- Adjust Github app perms
- Select the new repository (keep selected Repos)
- Back to vercel - the new repo should appear.
- Import new repo
- Select Framework preset SolidStart (v1)
- Deploy
- Add PORT={random number} to vercel ENV VAR Development Only
- Go to https://dashboard.clerk.com/
- Select STARMODΞ org
- Create new application (only enable email for simplicity)
- Go to configure - disable password
- Go to overview - Select Tanstack framework
- Paste ENV Vars into Vercel Env vars. Rename CLERK_PUBLISHABLE_KEY to VITE_CLERK_PUBLISHABLE_KEY
- Go to Neon:
- Select STARMODΞ org
- New Project
- Select region = N Virginia
- Create
- Go to Vercel STARMODΞ org: https://vercel.com/starmode/~/integrations
- Select Neon: Manage > Manage Access
- Select New Project
- Save
- Back to Neon: https://console.neon.tech/app/projects/odd-morning-40576850/integrations#featured
- Vercel: Add > Select New Project > Connect
- Evironment Variable will now be automatically added to Vercel Project
- Go to Neon Branches: https://console.neon.tech/app/projects/odd-morning-40576850/branches
- New Branch - 'dev-spencer' (then add 'dev-mikael') exact string match is important.
- Create New Branch
- Copy pooled connection URL
- Back to Vercel ENV VARS: https://vercel.com/starmode/expert-system/settings/environment-variables
- Add ENV VAR: SPENCER_DATABASE_URL with pooled connection. Select only Development
- Also add unpooled URL as SPENCER_DATABASE_URL_UNPOOLED
- Optional- add additional users
TODO
- Install Node.js (v22.x)
- Install Bun
- Clone the git repo
- Install dependencies:
bun install
- Link the Vercel project, to be able to pull development environment variables from Vercel:
bunx vercel link
- Set up “~/GitHub/starmode-base/starmode-template? yes
- Which scope should contain your project? STAR MODE
- Found project “starmode/starmode-template. Link to it? yes
- Pull development environment variables from Vercel:
bun env:pull
- Start the app in development mode:
bun dev
- TanStack Start Basic
- Prettier
- VSCode config + extensions
- TanStack Start Vercel deployment config
- TailwindCSS 4
- Stricter tsconfig
noUncheckedIndexedAccess
- Dev port number (Vercel env var)
- Drizzle
- Neon/Vercel integration
- ESLint
- Vitest
- @total-typescript/ts-reset
- Cursor config
- Configure domain (Vercel)
- lucide icons
- Font Inter
- Auth middleware
In package.json inngest-cli
is added to trustedDependencies
, due to:
This site is built with TanStack Router!
It's deployed automagically with Netlify!
From your terminal:
pnpm install
pnpm dev
This starts your app in development mode, rebuilding assets on file changes.
The documentations for all TanStack projects except for React Charts
are hosted on https://tanstack.com, powered by this TanStack Router app.
In production, the markdown doc pages are fetched from the GitHub repos of the projects, but in development they are read from the local file system.
Follow these steps if you want to edit the doc pages of a project (in these steps we'll assume it's TanStack/form
) and preview them locally :
- Create a new directory called
tanstack
.
mkdir tanstack
- Enter the directory and clone this repo and the repo of the project there.
cd tanstack
git clone [email protected]:TanStack/tanstack.com.git
git clone [email protected]:TanStack/form.git
Note
Your tanstack
directory should look like this:
tanstack/
|
+-- form/
|
+-- tanstack.com/
Warning
Make sure the name of the directory in your local file system matches the name of the project's repo. For example, tanstack/form
must be cloned into form
(this is the default) instead of some-other-name
, because that way, the doc pages won't be found.
- Enter the
tanstack/tanstack.com
directory, install the dependencies and run the app in dev mode:
cd tanstack.com
pnpm i
# The app will run on https://localhost:3000 by default
pnpm dev
- Now you can visit http://localhost:3000/form/latest/docs/overview in the browser and see the changes you make in
tanstack/form/docs
.
Note
The updated pages need to be manually reloaded in the browser.
Warning
You will need to update the docs/config.json
file (in the project's repo) if you add a new doc page!