Skip to content

prashantsumfactor/mynextapp

Repository files navigation

Section-2:

  1. What is next js - Next.js is a flexible React framework that gives you building blocks to create fast web applications.

  2. Benefite of next js -

    • Different render technique [ static, server, incremental side regeneration]
    • Performance [ code splitting, minifying, image optimize, pre-fetching assets]
    • File based routing
    • SEO - make your page top of other by doing proper formatting of page/code.
    • Serverless fundtion - call function start server-> execute with new server -> shut down.
  3. Why next.js popular.

Section-3:

  1. Create new project discover coffee store, and run dev server also see how it is llok like in browser.
  2. upgrade version of next and lib & fix issue.
  3. feature of next.js
  4. Fast refresh
  5. CSS modules work based on scope on same name class
  6. Background update and text color.
  7. Banner component.

Section-4:

  1. Routing in next
  2. Add routRoutinger
  3. Dynamic routing with custom ID
  4. Linking non-dynamic
    • By 'a' with referesh page, also for external links
    • By 'Link' without refresh page, linking within application
  5. Linking dynamic
    • By 'Link' mention path

Section-5:

  1. Home page update style.
  2. Hero image on home
  3. image component
  4. Font download and apply
  5. Create document file
    • Html have 2 part - head & body
    • _app.js is responsible for only 'body', and routing for all page
    • 'html', 'head' can be done by _document.js [ entire application]

Section-6:

  1. SEO
  2. Pre-rendering, hydration
  3. Rendering techniques
    • SSG : static generation
    • ISR : incremental site regeneration
    • SSR : server side renedering
  4. Performance
  5. CDN - content delivery network
  6. SSG - generate at build time external data [ without load all static files, with fetch api data in advance and pre-render later after build ]
  7. ISG - reload data after every time period & generate HTML
  8. SSR - server side rendering . new HTML generate every time
  9. CSR - all operation handle on client side. rendering pages directly in the browser using JavaScript

Section-7:

  1. component arch
  2. Card component
  3. apply card style
  4. grid layout for card
  5. add coffee store data [ json ]
  6. add coffee store on page
  7. pre-render in coffee store page getStaticProps
  8. implement Static site generation - with external data
  9. Characteristics of Get Static Props
  10. coffee store heading
  11. getStaticPaths implement
  12. Characteristics of Get Static Paths
  13. getStaticPaths in code
  14. fallback key
  15. show coffee data in dynamic page
  16. fallback true and false cases
  17. refactor page update name of dynamic page
  18. Coffee store details page
  19. add icon and image
  20. Coffee store page styling
  21. Foursquare account set-up and ket generate
  22. Foursquare place api
  23. rate limit
  24. Foursquare API playground
  25. Foursquare get static paths
  26. Fetch API async await
  27. Env local variable vs next.config
  28. coffee store lib
  29. Update foursquare api in getStaticPaths
  30. update coffee store details data
  31. set-up unsplash API
  32. invoke unsplash api p-1
  33. invoke unsplash api p-2
  34. update coffee-store library with images
  35. unsplash api per page -30
  36. display all coffee store card image
  37. update each card with different image
  38. update app styling

Section-8 :

  1. Geolocation api
  2. using react hook
  3. creat hook for retrieving location
  4. use hook for getting location
  5. use effect in function
  6. CSR, client side rendering
  7. display coffee store by location
  8. refresh dynamic route (non static)
  9. fallback in next
  10. use react context and why use it
  11. create store context
  12. create store reducer in context
  13. store coffee stores in StoreContext
  14. coffee store page with context
  15. coffee store page for non SSG route
  16. refactor coffee store page

Section-9 :

  1. what is API [Application programming interface]
  2. serverless function
  3. api routing
  4. hello world api route
  5. create serverless function
  6. catch all routes
    • if route exit with correct name it works [ pub.js ]
    • if route not exit it will catch any route [ 123/sfds anything]
  7. create serverless function for coffee store
  8. invoke serverless function
  9. serverless function inside get static props- we will stay with getting data directly in get static props next doc suggest don't call api inside static props because it is run at build time or pre-rendering.

Section-10 :

  1. Project Architecture
  2. Airtable
  3. set-up airtable
  4. API Architecture
  5. Airtable library
  6. coffee store aPI / Serverless function
  7. API design
  8. Find coffee store api
  9. transfrom coffee store data
  10. airtable doc, create record
  11. api error handling
  12. refactor coffee-store api
  13. invoke airtable api in coffee store page
  14. Coffee Stores are created twice and React Strict Mode
  15. invoke coffee store api from details page
  16. create coffee store for static gengerated route

Section-11 :

  1. SWR Design
  2. voting feature design
  3. coffee store by ID api
  4. coffee store by id validate
  5. refector coffee store by id api
  6. what is SWR - Stale while revalidate
  7. SWR doc fetch api
  8. Use swr in coffee store page
  9. API Design: Favourite Coffee Store By Id API
  10. API Docs: Favourite Coffee Store By Id API
  11. Favourite coffee store by Id API
  12. Favourite coffee store by Id api wrap
  13. Invoke favourite coffee store by id api
  14. application demo
  15. airtable final demo
  16. refactor and clean-up

Section-12 :

  1. what is deployment
  2. note : running next build
  3. running app in next build
  4. cloud ready application
  5. setting up git repo
  6. create git repo and puch code
  7. Coffee stores appear from different location on Vercel
  8. deployment to vercel
  9. vercel dashboard walkthrough
  10. vercel production build files
  11. what is netlify
  12. netlify deployment
  13. netlify plugin update
  14. netlify deployment configuration changes
  15. lighthouse performance
  16. lighthouse score
  17. lighthouse improvement