Real-World Next.js
by Michele Riva
Programming
Book Details
Book Title
Real-World Next.js
Publisher
Packt Publishing
Table of Contents
- Cover
- Title
- Copyright and Credits
- Table of Contents
- Part 1: Introduction to Next.js
- Chapter 1: A Brief Introduction to Next.js
- Technical requirements
- Introducing Next.js
- Comparing Next.js to other alternatives
- Moving from React to Next.js
- Getting started with Next.js
- Summary
- Chapter 2: Exploring Different Rendering Strategies
- Technical requirements
- Server-side rendering (SSR)
- Client-side rendering (CSR)
- Static site generation
- Summary
- Chapter 3: Next.js Basics and Built-In Components
- Technical requirements
- Routing system
- Serving static assets
- Handling metadata
- Customizing _app.js and _document.js pages
- Part 2: Hands-On Next.js
- Chapter 4: Organizing the Code Base and Fetching Data in Next.js
- Technical requirements
- Organizing the folder structure
- Data fetching
- Summary
- Chapter 5: Managing Local and Global States in Next.js
- Technical requirements
- Local state management
- Global state management
- Summary
- Chapter 6: CSS and Built-In Styling Methods
- Technical requirements
- Exploring and using Styled JSX
- CSS modules
- Integrating SASS with Next.js
- Summary
- Chapter 7: Using UI Frameworks
- Technical requirements
- An introduction to UI libraries
- Integrating Chakra UI in Next.js
- Integrating TailwindCSS in Next.js
- Integrating Headless UI
- Summary
- Chapter 8: Using a Custom Server
- Technical requirements
- About using a custom server
- Using a custom Express.js server
- Using a custom Fastify server
- Summary
- Chapter 9: Testing Next.js
- Technical requirements
- An introduction to testing
- Running unit and integration tests
- End-to-end testing with Cypress
- Summary
- Chapter 10: Working with SEO and Managing Performance
- Technical requirements
- SEO and performance – an introduction
- Rendering strategies, from a performance and SEO perspective
- Private routes
- A quick recap regarding our decisions
- Working with SEO
- Dealing with performance
- Summary
- Chapter 11: Different Deployment Platforms
- Technical requirements
- A brief introduction to different deployment platforms
- Deploying to the Vercel platform
- Deploying a static site to a CDN
- Choosing a CDN
- Deploying Next.js on any server
- Running Next.js in a Docker container
- Summary
- Part 3: Next.js by Examples
- Chapter 12: Managing Authentication and User Sessions
- Technical requirements
- A brief introduction to user sessions and authentication
- Understanding JSON web tokens
- Custom authentication – the good, the bad, and the ugly
- Implementing authentication using Auth0
- Summary
- Chapter 13: Building an E-Commerce Website with Next.js and GraphCMS
- Technical requirements
- Creating e-commerce for the modern web
- Setting up GraphCMS
- Creating the storefront, cart, and product detail pages
- Processing payments using Stripe
- Summary
- Chapter 14: Example Projects and Next Steps for Learning More
- One framework, endless possibilities
- Real-world applications for practicing with Next.js
- Next steps
- Summary
- Index