Using Claude Code to make SAAS
https://www.youtube.com/watch?v=pZzQOMNmx4c&list=LL&index=1
Use https://www.inngest.com/ for workflows management , like long running processes & checklogs
Payment processing https://polar.sh/
has adming page
https://posthog.com/ : Product analytics like pendo
these products are open soufce , you can self host and use them for freee , free tier is generus can easily launch MVP
https://www.youtube.com/watch?v=JQ86N3WOAh4
Tech Stack
- https://nextjs.org/ (react framework) : used for front end and back end both
- UI components : https://ui.shadcn.com/
- user authentication https://better-auth.com/
- database https://www.postgresql.org/ (vector embeddings , full text search)
- https://ai-sdk.dev/ : AI functionality , AI library
- https://openrouter.ai/
NPM vs PNPM
start project by
- npm install
- npm run dev
Misc Learning
npm error Your cache folder contains root-owned files, due to a bug in
npm error previous versions of npm which has since been addressed.
npm error
npm error To permanently fix this problem, please run:
npm error sudo chown -R 501:20 "/Users/ < username >/.npm"
Misc Learning
✓ Starting...
Error: Could not find a production build in the '.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
at ignore-listed frames
To resolve this, you need to run the build command first:
Run these two commands in order:
- bash
- npm run build
- bash
- npm start
Why this happens ?
- npm run dev: Best for coding. It watches for changes but is slower for users.
- npm run build: Compiles, optimizes, and minifies your code into the .next folder.
- npm start: Simply serves that optimized .next folder. If you haven't run the build yet, there is nothing for it to serve.
These tables are used by Better Auth to implement user authentication system
In order to add new Database table two options 1) either type in schema.ts 2) or use claude code
add a table like
In order to create a new table use the command in following order
- npm run db:generate
- npm run db:migrate
For Authentication , we will use https://better-auth.com/ with google
click on "oAuth Consent Screen"
Then create client
13:01
- How to setup open router for AI
- add credit
ok
Comments
Post a Comment