Skip to content

Aplicación para la busqueda de gifs con angular 19 y el uso de signals

Notifications You must be signed in to change notification settings

JhustynC/Gifs-App-Angular19

Repository files navigation

GifsApp

This project was generated using Angular CLI version 19.1.8.

Development server

To start a local development server, run:

ng serve

Once the server is running, open your browser and navigate to http://localhost:4200/. The application will automatically reload whenever you modify any of the source files.

Code scaffolding

Angular CLI includes powerful code scaffolding tools. To generate a new component, run:

ng generate component component-name

For a complete list of available schematics (such as components, directives, or pipes), run:

ng generate --help

Building

To build the project run:

ng build

This will compile your project and store the build artifacts in the dist/ directory. By default, the production build optimizes your application for performance and speed.

Running unit tests

To execute unit tests with the Karma test runner, use the following command:

ng test

Running end-to-end tests

For end-to-end (e2e) testing, run:

ng e2e

Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.

Additional Resources

For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.

Implementacion de Angular-Calendar en Angular 19+

Dependecias necesarias (copiar en en package.json e instalar):

"@ng-bootstrap/ng-bootstrap": "^18.0.0",
"@tailwindcss/postcss": "^4.0.8",
"angular-calendar": "^0.31.1",
"angularx-flatpickr": "^8.1.0",
"date-fns": "^4.1.0",
"ember-flatpickr": "^8.0.1",
"flatpickr": "^4.6.13",
"postcss": "^8.5.3",
"rxjs": "~7.8.0",
"tailwindcss": "^4.0.8",
"tslib": "^2.3.0",

Configurar el [app.cofig.ts] para agregar los necesarios providers:

import { importProvidersFrom } from '@angular/core';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
import { provideAnimations } from '@angular/platform-browser/animations';
import { provideFlatpickrDefaults } from 'angularx-flatpickr';

providers: [....,
    importProvidersFrom(
      CalendarModule.forRoot({
        provide: DateAdapter,
        useFactory: adapterFactory,
      })
    ),  
    provideAnimations(),
    provideFlatpickrDefaults()
]

Configurar los estilos generales [styles.css]

Primero siempre ira el css/angular-calendar debido a la naturaleza de su css y que no cause conflicto con las configuración de tailwind (Necesario instalar, seguir documentación)

@import "../node_modules/angular-calendar/css/angular-calendar.css";
@import "tailwindcss";

Por ultimo copiar el ejemplo del component y probar

About

Aplicación para la busqueda de gifs con angular 19 y el uso de signals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published