Skip to content

TanStack Start starter with shadcn/ui, tRPC, Drizzle and Lucia-Auth.

License

Notifications You must be signed in to change notification settings

ally-ahmed/tss-app

Repository files navigation

TSS App 🏝️

Tanstack Start simple starter project.

App Screenshot

Tech Stack

Acknowledgements

Getting Started

Clone project

  git clone [email protected]:ally-ahmed/tss-app.git
  cd tss-app

Install depndencies

pnpm install

Create db and tables

pnpm db:push

Run app

pnpm dev

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

GITHUB_CLIENT_ID=""

GITHUB_CLIENT_SECRET=""

TODO

  • Cache auth validation

  • Custom fonts

  • Investigate if there is a way to return a redirect from the server function without it being an error and it automatically does the redirect in the client. Tanner suggest userServerFn should work and it does for only URLs within the app but not external URL. So the useServerFn works for logout but not for Github login. And even with the logout it still goes throw the error channel

  • Maybe look at ESLint, Prettier or even jump ship and use biomejs

challenges/skill issue

  • CSS flicker on hard refresh (ctrl/command + shift + r) so I had to import the css like this then it stopped.
import '@/styles/globals.css'
import appCss from '@/styles/globals.css?url'

and also a link to Route options

  links: () => [{ rel: 'stylesheet', href: appCss }],
  • useMutation hook considers a server function that return a redirect as an error so you get the result of the redirect in the error channel.