# andes-plex

> Plex es un conjunto de componentes de UI/UX para el proyecto ANDES.

Latest version **0.3.0** (published 2017-02-20) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install andes-plex
pnpm add andes-plex
yarn add andes-plex
bun add andes-plex
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2017-02-20 |
| First published | 2016-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 27 |
| Known vulnerabilities | 0 (+26 in 5 direct dependencies) |
| Install scripts | no |
| Maintainers | andes |

## Links

- npm: https://www.npmjs.com/package/andes-plex
- npm.io page: https://npm.io/package/andes-plex

## Dependencies (27)

- [mdi](https://npm.io/package/mdi.md) ^1.8.36
- [rxjs](https://npm.io/package/rxjs.md) 5.1.1
- [jquery](https://npm.io/package/jquery.md) ^3.1.1
- [moment](https://npm.io/package/moment.md) ^2.16.0
- [core-js](https://npm.io/package/core-js.md) ^2.4.1
- [zone.js](https://npm.io/package/zone.js.md) 0.6.26
- [hammerjs](https://npm.io/package/hammerjs.md) ^2.0.8
- [bootstrap](https://npm.io/package/bootstrap.md) ^3.3.7
- [selectize](https://npm.io/package/selectize.md) ^0.12.4
- [node-waves](https://npm.io/package/node-waves.md) ^0.7.5
- [ts-helpers](https://npm.io/package/ts-helpers.md) ^1.1.1
- [typescript](https://npm.io/package/typescript.md) ^2.1.6
- [@types/node](https://npm.io/package/@types/node.md) ^6.0.62
- [@angular/cli](https://npm.io/package/@angular/cli.md) 1.0.0-beta.32.3
- [@angular/core](https://npm.io/package/@angular/core.md) 2.4.8
- [@angular/http](https://npm.io/package/@angular/http.md) 2.4.8
- [@angular/forms](https://npm.io/package/@angular/forms.md) 2.4.8
- [@types/jasmine](https://npm.io/package/@types/jasmine.md) ^2.2.30
- [angular2-modal](https://npm.io/package/angular2-modal.md) ^2.0.2
- [@angular/common](https://npm.io/package/@angular/common.md) 2.4.8
- [@angular/router](https://npm.io/package/@angular/router.md) 3.4.8
- [@angular/compiler](https://npm.io/package/@angular/compiler.md) 2.4.8
- [@angular/material](https://npm.io/package/@angular/material.md) ^2.0.0-beta.2
- [awesome-phonenumber](https://npm.io/package/awesome-phonenumber.md) ^1.2.0
- [angular2-loaders-css](https://npm.io/package/angular2-loaders-css.md) ^1.0.7
- [@angular/platform-browser](https://npm.io/package/@angular/platform-browser.md) 2.4.8
- [@angular/platform-browser-dynamic](https://npm.io/package/@angular/platform-browser-dynamic.md) 2.4.8

## Recent versions

- 0.3.0 (latest) — 2017-02-20
- 0.2.19 — 2017-02-16
- 0.2.18 — 2017-02-03
- 0.2.17 — 2017-02-01
- 0.2.16 — 2017-01-17
- 0.2.15 — 2017-01-17
- 0.2.14 — 2016-12-16
- 0.2.13 — 2016-12-16
- 0.2.12 — 2016-12-16
- 0.2.11 — 2016-12-15
- 0.2.10 — 2016-12-05
- 0.2.9 — 2016-11-22
- 0.2.8 — 2016-11-17
- 0.2.7 — 2016-11-11
- 0.2.6 — 2016-11-10
- … 9 more at https://npm.io/package/andes-plex/versions

## README

# Plex: UI/UX para ANDES

Plex es un conjunto de componentes de UI/UX para el proyecto ANDES.


## Instalación
1. Crear una nueva aplicación con [angular-cli](https://cli.angular.io/)

    ```
   ng new my-app
   cd my-app
    ```
 
2. Descargar desde npm

    ```
   npm install andes-plex --save
    ```
 
3. Renombrar el archivo `src/styles.css` a  `src/styles.less` y editarlo para vincular al archivo `.less` de Plex

    ```less
   @import '~andes-plex/src/lib/styles.less';
    ```
 
4. Crear un nuevo archivo `src/styles.sass` y editarlo para vincular al archivo `.sass` de Plex

    ```less
   @import '~andes-plex/src/lib/styles.sass';
    ```

5. Registrar ambos archivos de estilos en `angular-cli.json`, quitando `styles.css`

    ```json
   ...
   "styles": [
       "styles.less",
       "styles.sass"
   ],
   ...
    ```

6. Modificar `app.component.html` con el siguiente contenido:

    ```html
   <plex-app>  
   </plex-app>
    ```

7. Crear un componente `home.component.ts` con el siguiente contenido:

    ```typescript
   import { Component } from '@angular/core';

   @Component({
      template: 'Hello World',
   })
   export class HomeComponent {
   }
    ```

8. Crear el archivo `app.routing.ts` y registrar el componente:

    ```typescript
   import { Routes, RouterModule } from '@angular/router';
   import { ModuleWithProviders } from '@angular/core';
   import { HomeComponent } from './home.component';

   const appRoutes: Routes = [
     { path: '**', component: HomeComponent } 
   ];

   export const appRoutingProviders: any[] = [];
   export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);
    ```

9. En `app.module.ts` importar `PlexModule` y registrar los routings y `PlexService`: 

    ```typescript
   import { BrowserModule } from '@angular/platform-browser';
   import { NgModule } from '@angular/core';
   import { FormsModule } from '@angular/forms';
   import { HttpModule } from '@angular/http';
   import { PlexModule } from 'andes-plex/src/lib/module';
   import { PlexService } from 'andes-plex/src/lib/core/service';
   import { routing, appRoutingProviders } from './app.routing';

   // Components
   import { AppComponent } from './app.component';
   import { HomeComponent } from './home.component';

   @NgModule({
     declarations: [
       AppComponent,
       HomeComponent
     ],
     imports: [
       BrowserModule,
       FormsModule,
       HttpModule,
       PlexModule,
       routing
     ],
     providers: [
       PlexService,  
       appRoutingProviders  
     ],
     bootstrap: [AppComponent]
   })
   export class AppModule { }

    ```

8. Correr la aplicacion `ng serve` 

    ```
   ng serve
    ```

9. Navegar hasta `http://localhost:4200`

---
_Source: https://npm.io/package/andes-plex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
