Introducción a Angular y Fundamentos

1

Aprende Angular 17

2

Creando tu primer proyecto en Angular

3

Implementando estilos

4

Mostrando elementos

5

Property Binding en Angular

6

Event Binding: click y doble click

7

Event binding: keydown

8

Modelo de reactividad con Signals

9

Creando un Signal en Angular

Estructuras de control en Angular

10

Directivas de control

11

Uso de ngFor

12

ngFor para objetos

13

Update Tasks

14

Uso de ngIf

15

Uso de ngSwitch y ngSwitchDefault

16

Controlando un input

17

Manejo de formularios en Angular

Alistando tu aplicación para producción

18

Estilos al modo Angular

19

Clases en Angular

20

Editing mode

21

Estados compuestos con computed

22

Usando effect para localStorage

23

Uso de ngbuild

24

Despliegue con Firebase Hosting

25

Nueva sintaxis en Angular

26

Directivas @For, @switch

27

Migrando a la nueva sintaxis de Angular v17

Componentes Reutilizables y Comunicación

28

Construyendo un e-commerce en Angular

29

Componentes en Angular

30

Mostrando los componentes

31

Angular DevTools

32

Uso de Inputs en Angular

33

Uso de Outputs en Angular

34

Componentes para Producto

Ciclo de vida de los componentes

35

Ciclo de vida de componentes

36

Ciclo de vida de componentes: ngOnChanges

37

Ciclo de vida de componentes: ngOnInit

38

Detectando cambios en los inputs

39

Evitando memory leaks con ngDestroy

40

Audio player con ngAfterViewInit

41

Creando la página "about us" o "conócenos"

Mejorando la interfaz del producto

42

Creando componente de productos

43

Creando el Header

44

Creando el carrito de compras

45

Comunicación padre e hijo

46

Calculando el total con ngOnChanges

47

El problema del prop drilling

48

Reactividad con signals en servicios

49

Entendiendo la inyección de dependencias

Integración y Datos

50

Obteniendo datos una REST API

51

Importaciones cortas en Typescript

52

Pipes en Angular

53

Construyendo tu propio pipe

54

Utilizando librerías de JavaScript en Angular

55

Conociendo las directivas

56

Deployando un proyecto en Vercel

Enrutamiento y Navegación

57

Ruta 404

58

Uso del RouterLink

59

Vistas anidadas

60

Uso del RouterLinkActive

61

Detalle de cada producto

62

Obteniendo datos del producto

63

Galería de imagenes

64

Detalle de la galería

Perfeccionando tu e-commerce

65

Mostrando categorias desde la API

66

Url Params

67

LazyLoading y Code Splitting

68

Aplicando LazyLoading

69

Prefetching

70

Usando la nueva sintaxis de Angular 17

71

Lanzando tu aplicación a producción

You don't have access to this class

Keep learning! Join and start boosting your career

Aprovecha el precio especial y haz tu profesión a prueba de IA

Antes: $249

Currency
$209
Suscríbete

Termina en:

1 Días
16 Hrs
52 Min
16 Seg

Deployando un proyecto en Vercel

56/71
Resources

How to deploy an Angular application in Vercel?

The success of an application depends not only on its development, but also on how and where you deploy it. Vercel presents itself as a robust and professional option to deploy your Angular applications. With the right tools and a proper configuration, you can take your project from the local environment to production with ease. Here's how to do it step by step.

How to create a Vercel account?

To get started, it is essential that you first create a Vercel account. This platform allows you to integrate your own domains and manage your projects professionally. Follow these steps to set up your account:

  1. Sign up for Vercel: Visit the Vercel website and create a new account. Be sure to complete the verification through the email you will be sent.
  2. Access the dashboard: Once you have created your credentials and verified your account, access the Vercel dashboard to explore options and configure future projects.

How to install the Vercel CLI?

The next step is to install the Vercel CLI, a vital tool for deploying your infrastructure:

  1. Installing the package: Copy the following command in your terminal to install the Vercel CLI. This is a crucial step and is easily done from the command line.

    npm install -g vercel
  2. Project verification: Before proceeding, make sure you are working inside your Angular project directory. Use pwd to confirm your location in the terminal.

How to deploy your Angular application?

Once you are inside your project and the CLI is installed, perform the deployment following these simple steps:

  1. Run the Vercel command: Start the process by running the following command in the terminal:

    vercel

    This will prompt you to log in. Log in with your Vercel account and follow the verification instructions sent to your email.

  2. Configure the project: During configuration, Vercel will ask you for several details about the project:

    • Project name: Assign a name, for example, "Store".
    • Code directory: Indicates that the code is located in the root of the project.
    • Angular environment options: Vercel will automatically detect that you are working with Angular and will propose specific configurations such as ngBuild for build and npm install for dependencies.
  3. Automatic deployment: If the configurations are correct, confirm and let Vercel handle the rest. In a few minutes, your application will be deployed to the Vercel cloud and provide you with a URL to access.

What are the benefits of the Vercel dashboard?

Once the deployment is complete, the Vercel dashboard offers several tools to manage and optimize your application:

  • Project configurations: Access advanced configurations and customize the deployment according to your needs.
  • Log and storage monitoring: Monitor performance and storage, which is essential for identifying and resolving problems.
  • Custom domain options: Integrate your own domain for a more professional identity within the cloud.

Vercel not only eases the technical process of deployment, but also provides a complete environment to manage and scale your applications. Take advantage of these tools to take your Angular application to the next level and stay on the cutting edge of web development. Keep exploring and expanding your skills, success is just a deployment away!

Contributions 9

Questions 0

Sort by:

Want to see more contributions, questions and answers from the community?

Otra forma de hacer el deploy en Vercel, es subiendo nuestro proyecto a github (es necesario que ya hayas creado una cuenta). Los comandos serían: `git init` `git add .` `git commit -m "first commit"` `git remote add origin <URL>` `git push origin master` Luego, dentro de la página de Vercel, iniciar sesión y vincular tu cuenta de Github, escoger la opción de solo dar permiso de un proyecto y escoger la app de tu elección. ⭐Y listo, tienes tu página con un link público y con un dominio que puedes modificar en configuraciones⭐
2024-01-16 Si se encuentran con este error: 404: NOT\_FOUND Code: NOT\_FOUND A mi me sirvió crear un archivo vercel.json en la raíz del proyecto con este contenido: `{ ` `"rewrites": [` ` ` `{"source": "/(.*)", "destination": "/"} ` `]` `}`
el link publico es el primero ![](https://static.platzi.com/media/user_upload/image-47e72f6e-f7e7-497d-94ad-3cd9276f1a31.jpg)
<https://vercel.com>
Alguien le sale este error?: ![](https://static.platzi.com/media/user_upload/image-5005376e-c45c-48a2-ba32-948b9a58a491.jpg)
Vercel tiene alguna limitación para despliegue de aplicaciones?, me refiero si mi app debe tener algunas restricciones de importación o de versión, para asi saber que tan simple o hasta que complejidad puede tener mi app para poder subirla sin problema
y como se hace para que esa url sea publica? por q si se entra sin logearse te pide es eso, q te logees, sigo prefiriendo netlify

Si alguien sabe, he intentado varias cosas y nada, hice un proyecto adicional, donde hago peticiones a una API de gifs, pero no he podido configurar esa API key en vercel en el momento del despliegue, en el local funciona perfecto. jajajaja, agradezco ayudas