Conceptos básicos de Next.js 14
¿Qué es Next.js y por qué aprenderlo si quieres ser frontend senior?
Arquitectura de un proyecto de Next.js
Herramientas y stack utilizado en el curso
Cómo crear rutas en Next.js
Cómo crear Layout en Next.js
Cómo funciona la navegación en Next.js
Manejo de parámetros en rutas en Next.js
React Server Components en Next.js: notación "use Client"
Creación de arquitectura de landing page en Next.js
Quiz: Conceptos básicos de Next.js 14
Manejo de estilos y estáticos en Next.js 14
CSS Modules en Next.js 13
Uso de Sass en Next.js
Cómo utilizar estilos globales en Next.js
Cómo agregar archivos estáticos en Next.js
Manejo y optimización de imágenes con Next Image
Optimización del componente image en Next.js
Optimización de fuentes con Next.js
Creando estilos dinámicos aplicando condicionales en Next.js
Quiz: Manejo de estilos y estáticos en Next.js 14
Data Fetching en Next.js
Creación de tienda de Shopify para un proyecto en Next.js
Manejo de variables de entorno en Next.js
Cómo obtener información de una API con Next.js
Manejo de estado de carga con el archivo loading.tsx
Route Grouping en Next.js
Manejo de errores en la UI con el archivo error.tsx
Quiz: Data Fetching en Next.js
Next.js Avanzado
Implementando páginas de Not Found y error global
Cómo impactan los React Server Components en un proyecto en Next.js
Cuándo utilizar layout o template en Next.js
Arquitectura profesional para data fetching en un proyecto en Next.js
Next.js para backend: manejando rutas con archivos Route Handlers
Proyecto: implementando la página de tienda
Patrones de data fetching en Next.js
Proyecto: filtrando categorías de productos
Data fetching de parámetros en el servidor y cliente
Proyecto: página de producto y arreglos en el sitio
Cómo funciona el Fetch y el Caché de Next.js
Revalidando cache con revalidateTag y revalidatePath en Next.js
Cómo hacer redirects en Next.js
Proyecto: HTML dinámico en la descripción del producto
Mejorando SEO de una página en Next.js
Quiz: Next.js Avanzado
Autenticación y autorización
Manejando autenticación y autorización con Storefront APÏ de Shopify
Server Actions en Next.js
Proyecto: proceso de Sign-Up con GraphQL
Manejo de cookies para colocar un token de acceso de un proyecto en Next.js
Cómo implementar un flujo de login en un proyecto en Next.js
Validando token de acceso de usuario en un proyecto en Next.js
Proyecto: implementando el carrito de compras
Manejo de estado global con zustand en Next.js
Proyecto: agregando items al carrito de compras
Cómo integrar el checkout de Shopify a un proyecto en Next.js
Implementar middleware en proyecto en Next.js para protección de rutas
Inteligencia Artificial
Creando componente de chatbot de ventas con la SDK IA de Vercel
Implementación de un bot de ventas en una app Next.js
Performance
Optimización de carga con parallel routing en Next.js
Análisis de bundle para Next.js 14
Quiz: Performance
Frontend Ops
Edge runtime
Despliegue de un proyecto Next.js en Vercel
Mejores prácticas en arquitecturas empresariales
Quiz: Frontend Ops
Next.js es parte de tu nuevo stack
¡Has creado un proyecto en Next.js!
Starting a project in Next.js is simple and efficient thanks to the create-next-app
command. This tool not only sets up the necessary project structure, but also allows you to integrate TypeScript, an option that is highly recommended. To get started, it is essential to have Node.js installed, as the command requires nbx
.
When creating a project, you can include options that improve organization and development, such as:
source
directory for better code organization.app-router
, the new Next.js methodology for handling routing, which we will explore in more detail on other occasions.During the initial setup, you have the option to customize an import alias to make it easier to manage the modules in your project. Once configured, Next.js requires few dependencies, both for development and production:
react
, react-dom
, next
.typescript
, eslint
.With the project created, it is a good idea to explore it with a tool such as Visual Studio Code to familiarize yourself with the general structure.
The Next.js architecture efficiently organizes the different files and folders that make up a project:
package.json
file and key scripts.Inside the package.json
file, you will find the scripts that execute the main tasks:
next dev
: Starts the development server to view changes in real time.next build
: Compiles the project for production.next start
: Starts the project in production mode.next lint
: Verifies that the code meets the defined quality standards.app-router
In the source
folder is located the app-router
, which contains vital files for the project configuration:
app
folder.root layout
.Besides the main organization, there are other important aspects to consider:
next.config.js.
Inside the public
folder are stored all resources that should be publicly accessible, such as images and fonts. The next.config.js
file is crucial for advanced configurations, including SAS compilers and complex Webpack configurations.
tsconfig.json
and the .next
folderThe tsconfig.json
file handles TypeScript-specific configurations and defines the paths for dynamic aliases. Finally, the .next
folder, generated during the build of the project, stores the cached files. In case of problems such as persistent caches of styles or components, it is recommended to delete this folder to fix common errors.
Next.js automates many architectural decisions, allowing developers to focus on creating functional and robust applications. Ready to get started with your next Next.js project? Take the time to explore and fully understand each of these components to maximize the efficiency and quality of your development. Go ahead and keep learning and exploring new technologies in the exciting world of web programming!
Contributions 24
Questions 6
a mi me gusta mucho Tailwind. Q lastima q no lo usen
npx create-next-app@latest --ts
Want to see more contributions, questions and answers from the community?