First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
sanity typeGen lib install sanity cli: npm install -global sanity@latest
ctrl + p : typescript -> select version -> version 5.6.3
"typegen": "npx sanity@latest schema extract && npx sanity@latest typegen generate"
//or
"typegen": "sanity schema extract && sanity typegen generate"
create types:
-
sanity
-
schemaTypes
- productType.ts
- categories.ts
- index.ts : this file used to add your types(sanity schems). export const schema :{types:SchemaTypeDefination[]}={ types:[catogories,productType] }
"db:migrate": "tsx ./src/db/migrate.ts" - drizzle orm
-
https://github.com/anushujan/next-auth-nextjs15/blob/main/src/components/LoginForm.tsx
https://github.com/tobiasmeyhoefer/next-auth-v5/blob/main/schemas/index.ts
https://github.com/HuXn-WebDev/Auth.js-v5-Complete-Course/blob/main/lib/getSession.ts
https://github.com/code100x/cms/blob/main/src/app/signin/page.tsx
https://nextjsstarter.com/blog/nextauth-protected-routes-best-practices/
how did i do
https://www.youtube.com/watch?v=-IXkPn1WV00
https://www.portotheme.com/wordpress/porto/shop3/
https://lilsimsie-merch.creator-spring.com/
git remote add origin https://github.com/ShivajiKS/ecommerce.git git branch -M main git push -u origin main
https://www.youtube.com/feed/downloads
dynamic route:it should be some name related(seperated by - symbol) to product name and add search params to it like productId and other information. in the dynamic route, fetch the product data using productId searchparam and not by dynamic slug id.
packages : zustund react hook form zod framer motion shadcn next-themes
supabase drizzel
cloudflair for images: https://st4ng.medium.com/how-to-use-next-js-image-optimization-with-cloudflare-569da7b3ddc6 https://logsnag.com/blog/deploying-nextjs-13-app-dir-to-cloudflare-pages
stripe payments: https://medium.com/@rakeshdhariwal61/integrating-stripe-payment-gateway-in-next-js-14-a-step-by-step-guide-1bd17d164c2c
https://www.josiefairbijoux.com/
https://www.peregrineclothing.co.uk/
https://orm.drizzle.team/learn/tutorials/drizzle-with-supabase#setup-supabase-and-drizzle-orm
https://orm.drizzle.team/docs/get-started-postgresql#supabase
card : small details page : bigger cart : thembnail
fonts :
products page: Lora - 700 - 400 : available on google fonts..
product page: SourceSansPro - 400