I wanted to try out TanStack Start (which is still in beta) so I made this simple todo app with Google authentication and a MongoDB database.
demo.mov
NOTE: because it's using a release candidate I have not deployed this anywhere yet, but it does work locally and has comprehensive unit tests:
You'll need the following env vars:
VITE_BASE_URL: http://localhost:3000 in developmentGOOGLE_CLIENT_ID: your Google API client IDGOOGLE_CLIENT_SECRET: your Google API client secretMONGO_URI: your MongoDB connection stringSESSION_SECRET: a secret key of your choosing (min 30 chars)
This project uses pnpm as its package manager.
Install dependencies:
pnpm iStart the development server:
pnpm devRun unit tests in watch mode:
pnpm testRun unit tests and generate a coverage report:
pnpm test run --coverage