Mostrando entradas con la etiqueta spring boot. Mostrar todas las entradas
Mostrando entradas con la etiqueta spring boot. Mostrar todas las entradas

lunes, 21 de agosto de 2017

spring boot and restful services, with JPA and Spring data

SPRING BOOT REALMENTE ESTA FACILITANDO LA CONSTRUCCION DE APLICACIONES, ELIMINANDO LA REDUNDANCIA DE CODIGO Y FACILITANDO LA CREACION DE PROYECTOS DESDE  http://start.spring.io/

ESTA PAGINA TE CREA LAS DEPENDENCIAS GRADLE OR MAVEN DESDE CERO, AGREGANDO LAS DEPENDENCIAS QUE TU QUIERES












[
    {
        "id": 1,
        "name": "Piccadilly",
        "number": "P1",
        "bedInfo": "1Q"
    },
    {
        "id": 2,
        "name": "Piccadilly",
        "number": "P2",
        "bedInfo": "1Q"
    },
    {
        "id": 3,
        "name": "Piccadilly",
        "number": "P3",
        "bedInfo": "1Q"
    },
    {
        "id": 4,
        "name": "Piccadilly",
        "number": "P4",
        "bedInfo": "2D"
    },
    {
        "id": 5,
        "name": "Piccadilly",
        "number": "P5",
        "bedInfo": "2D"
    },
    {
        "id": 6,
        "name": "Piccadilly",
        "number": "P6",
        "bedInfo": "2D"
    },
    {
        "id": 7,
        "name": "Cambridge",
        "number": "C1",
        "bedInfo": "1K"
    },
    {
        "id": 8,
        "name": "Cambridge",
        "number": "C2",
        "bedInfo": "1K"
    },
    {
        "id": 9,
        "name": "Cambridge",
        "number": "C3",
        "bedInfo": "1K"
    },
    {
        "id": 10,
        "name": "Westminster",
        "number": "W1",
        "bedInfo": "1K"
    },
    {
        "id": 11,
        "name": "Westminster",
        "number": "W2",
        "bedInfo": "1K"
    },
    {
        "id": 12,
        "name": "Westminster",
        "number": "W3",
        "bedInfo": "1K"
    },
    {
        "id": 13,
        "name": "Westminster",
        "number": "W4",
        "bedInfo": "1K"
    },
    {
        "id": 14,
        "name": "Westminster",
        "number": "W5",
        "bedInfo": "2D"
    },
    {
        "id": 15,
        "name": "Westminster",
        "number": "W6",
        "bedInfo": "2D"
    },
    {
        "id": 16,
        "name": "Westminster",
        "number": "W7",
        "bedInfo": "2D"
    },
    {
        "id": 17,
        "name": "Oxford",
        "number": "O1",
        "bedInfo": "1K"
    },
    {
        "id": 18,
        "name": "Oxford",
        "number": "O2",
        "bedInfo": "1K"
    },
    {
        "id": 19,
        "name": "Oxford",
        "number": "O3",
        "bedInfo": "1Q"
    },
    {
        "id": 20,
        "name": "Oxford",
        "number": "O4",
        "bedInfo": "1Q"
    },
    {
        "id": 21,
        "name": "Oxford",
        "number": "O5",
        "bedInfo": "1Q"
    },
    {
        "id": 22,
        "name": "Victoria",
        "number": "V1",
        "bedInfo": "1K"
    },
    {
        "id": 23,
        "name": "Victoria",
        "number": "V2",
        "bedInfo": "2D"
    },
    {
        "id": 24,
        "name": "Victoria",
        "number": "V3",
        "bedInfo": "2D"
    },
    {
        "id": 25,
        "name": "Manchester",
        "number": "M1",
        "bedInfo": "1K"
    },
    {
        "id": 26,
        "name": "Manchester",
        "number": "M2",
        "bedInfo": "1K"
    },
    {
        "id": 27,
        "name": "Manchester",
        "number": "M3",
        "bedInfo": "1K"
    },
    {
        "id": 28,
        "name": "Manchester",
        "number": "M4",
        "bedInfo": "1K"
    }
]


CREATE TABLE ROOM(
  ROOM_ID BIGINT AUTO_INCREMENT PRIMARY KEY,
  NAME VARCHAR(16) NOT NULL,
  ROOM_NUMBER CHAR(2) NOT NULL UNIQUE,
  BED_INFO CHAR(2) NOT NULL
);

CREATE TABLE GUEST(
  GUEST_ID BIGINT AUTO_INCREMENT PRIMARY KEY,
  FIRST_NAME VARCHAR(64),
  LAST_NAME VARCHAR(64),
  EMAIL_ADDRESS VARCHAR(64),
  ADDRESS VARCHAR(64),
  COUNTRY VARCHAR(32),
  STATE VARCHAR(12),
  PHONE_NUMBER VARCHAR(24)
);

CREATE TABLE RESERVATION(
  RESERVATION_ID BIGINT AUTO_INCREMENT PRIMARY KEY,
  ROOM_ID BIGINT NOT NULL,
  GUEST_ID BIGINT NOT NULL,
  RES_DATE DATE
);

ALTER TABLE RESERVATION ADD FOREIGN KEY (ROOM_ID) REFERENCES ROOM(ROOM_ID);
ALTER TABLE RESERVATION ADD FOREIGN KEY (GUEST_ID) REFERENCES GUEST(GUEST_ID);
CREATE INDEX IDX_RES_DATE_ ON RESERVATION(RES_DATE);





package com.frankmoley.landon.data.webservice;

import com.frankmoley.landon.data.entity.Room;
import com.frankmoley.landon.data.repository.RoomRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

@RestController
public class RoomController {
    @Autowired
    private RoomRepository repository;

    @RequestMapping(value="/rooms", method= RequestMethod.GET)
    List<Room> findAll(@RequestParam(required=false) String roomNumber){
       List<Room> rooms = new ArrayList<>();
        if(null==roomNumber){
            Iterable<Room> results = this.repository.findAll();
            results.forEach(room-> {rooms.add(room);});
        }else{
            Room room = this.repository.findByNumber(roomNumber);
            if(null!=room) {
                rooms.add(room);
            }
        }
        return rooms;
    }
}



martes, 8 de agosto de 2017

Generate project using Angular 2 CLI and NPM, FUELUX, BOOTSTRAP@3


PASOS TO DEVELOP THE ANGULAR 2 APPLICATION
AWESOME FRONT END APPLICATION WITH ANGULAR JS















Time: 114ms
chunk    {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 178 kB {4} [initial]
chunk    {1} main.bundle.js, main.bundle.js.map (main) 53.3 kB {3} [initial] [rendered]
chunk    {2} styles.bundle.js, styles.bundle.js.map (styles) 10.5 kB {4} [initial]
chunk    {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.19 MB [initial]
chunk    {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry]
webpack: Compiled successfully.
^C¿Desea terminar el trabajo por lotes (S/N)? s
PS C:\Users\rober\scoop\persist\nodejs\bin\src\main\webapp\angular2> cd ..
PS C:\Users\rober\scoop\persist\nodejs\bin\src\main\webapp> cd /
PS C:\> dir


    Directorio: C:\


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:44 PM                02_04
d-----        4/22/2015   7:59 AM                apache-maven-3.3.3
d-----       11/16/2015   6:21 PM                apache-tomcat-7.0.61
d-----        6/26/2017   7:28 PM                apache-tomcat-7.0.79
d-----        10/7/2015   7:28 PM                apache-tomcat-8.0.28
d-----       10/17/2015   7:50 PM                Apps
d-----        7/24/2016   2:17 PM                DELL
d-----       10/17/2015   8:00 PM                Drivers
d-----         8/3/2017  10:13 PM                EclipseProjects
d-----       11/10/2016  11:55 AM                HeadFirstAndroid-master
d-----        5/13/2016   4:09 PM                IBM
d-----        10/5/2016  12:31 AM                IBM_1
d-----         5/1/2017  10:19 AM                Intel
d-----         5/4/2016   5:12 PM                jboss-5.0.1.GA
d-----         5/4/2016  11:29 AM                jdk1.6.0_31
da----        7/24/2016   1:54 PM                jr7
da----        5/11/2016   9:44 PM                jre6
d-----        7/18/2015  12:22 AM                langpacks
d-----         8/8/2017   4:43 PM                linked
d-----       11/16/2015   6:21 PM                maven
d-----         8/1/2017   3:59 PM                mavenprojects
d-----        6/22/2017  12:52 PM                nester
d-----        3/18/2017   3:03 PM                PerfLogs
d-r---         8/4/2017   2:22 AM                Program Files
d-r---         8/4/2017   2:23 AM                Program Files (x86)
d-----        5/11/2016   1:08 PM                prueba
d-----        6/17/2017  11:17 AM                QUARANTINE
d-----         8/4/2017   2:18 AM                Recovery
d-----         5/5/2016   4:11 PM                Software
d-----         5/4/2016  11:20 AM                sqldeveloper
d-----        5/12/2016   3:56 PM                ster
d-----        5/12/2016   3:57 PM                Sterling
d-----        5/17/2016   5:51 PM                Sterling9.4andWebSphere8.5
d-----         5/5/2016  11:25 AM                Sterling921
d-----         8/4/2017   2:13 AM                temp
d-r---         8/4/2017   2:23 AM                Users
d-----         8/4/2017   2:52 AM                Windows
d-----         8/3/2017   8:02 PM                Windows.old
-a----        1/21/2016   4:05 PM           1024 .rnd
-a----        11/2/2015   4:28 AM            383 ftconfig.ini
-a----       11/10/2016  12:24 PM             91 HaxLogs.txt
-a----        12/1/2006  10:37 PM         904704 msdia80.dll
-a----       10/27/2015   2:48 PM            151 ods.exe.config


PS C:\> cd .\02_04\
PS C:\02_04> ls


    Directorio: C:\02_04


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:44 PM                Begin
d-----         8/8/2017   4:44 PM                End
-a----        3/29/2017   9:15 PM           6148 .DS_Store
-a----        4/24/2017   6:42 PM           4096 ._.DS_Store
-a----        4/24/2017   6:42 PM           4096 ._Begin
-a----        4/24/2017   6:42 PM           4096 ._End


PS C:\02_04> cd End
PS C:\02_04\End> dir


    Directorio: C:\02_04\End


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:45 PM                linked-in-learning-full-stack-app-angular-spring-boot
-a----        3/29/2017   9:15 PM           6148 .DS_Store
-a----        4/24/2017   6:42 PM           4096 ._.DS_Store
-a----        4/24/2017   6:42 PM           4096 ._linked-in-learning-full-stack-app-angular-spring-boot


PS C:\02_04\End> cd .\linked-in-learning-full-stack-app-angular-spring-boot\
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot> dir


    Directorio: C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:45 PM                .gradle
d-----         8/8/2017   4:45 PM                .settings
d-----         8/8/2017   4:45 PM                bin
d-----         8/8/2017   4:44 PM                gradle
d-----         8/8/2017   4:44 PM                src
-a----         8/8/2017   4:45 PM            511 .classpath
-a----        3/29/2017   9:16 PM           6148 .DS_Store
-a----        3/29/2017   2:38 PM            271 .gitignore
-a----         8/8/2017   4:45 PM            714 .project
-a----        4/24/2017   6:42 PM           4096 ._.DS_Store
-a----        4/24/2017   6:42 PM           4096 ._.gitignore
-a----        4/24/2017   6:42 PM           4096 ._build.gradle
-a----        4/24/2017   6:42 PM           4096 ._gradle
-a----        4/24/2017   6:42 PM           4096 ._gradlew
-a----        4/24/2017   6:42 PM           4096 ._gradlew.bat
-a----        4/24/2017   6:42 PM           4096 ._src
-a----        3/29/2017   2:38 PM            818 build.gradle
-a----        3/29/2017   2:38 PM           5299 gradlew
-a----        3/29/2017   2:38 PM           2260 gradlew.bat


PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot> cd .\src\
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src> dir


    Directorio: C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:44 PM                main
d-----         8/8/2017   4:44 PM                test
-a----        4/24/2017   6:42 PM           4096 ._main
-a----        4/24/2017   6:42 PM           4096 ._test


PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src> cd .\main\
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main> dir


    Directorio: C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:44 PM                java
d-----         8/8/2017   4:44 PM                resources
d-----         8/8/2017   4:44 PM                webapp
-a----        4/24/2017   6:42 PM           4096 ._java
-a----        4/24/2017   6:42 PM           4096 ._resources
-a----        4/24/2017   6:42 PM           4096 ._webapp


PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main> cd .\webapp\
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp> ls


    Directorio: C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:44 PM                angular2
-a----        4/24/2017   6:42 PM           4096 ._angular2


PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp> cd .\angular2\
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2> ls


    Directorio: C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:44 PM                e2e
d-----         8/8/2017   4:44 PM                src
-a----        3/29/2017   2:38 PM           1126 .angular-cli.json
-a----        3/29/2017   2:38 PM            245 .editorconfig
-a----        3/29/2017   2:38 PM            516 .gitignore
-a----        4/24/2017   6:42 PM           4096 ._.angular-cli.json
-a----        4/24/2017   6:42 PM           4096 ._.editorconfig
-a----        4/24/2017   6:42 PM           4096 ._.gitignore
-a----        4/24/2017   6:42 PM           4096 ._e2e
-a----        4/24/2017   6:42 PM           4096 ._karma.conf.js
-a----        4/24/2017   6:42 PM           4096 ._package.json
-a----        4/24/2017   6:42 PM           4096 ._protractor.conf.js
-a----        4/24/2017   6:42 PM           4096 ._README.md
-a----        4/24/2017   6:42 PM           4096 ._src
-a----        4/24/2017   6:42 PM           4096 ._tsconfig.json
-a----        4/24/2017   6:42 PM           4096 ._tslint.json
-a----        3/29/2017   2:38 PM           1240 karma.conf.js
-a----        3/29/2017   2:38 PM           1201 package.json
-a----        3/29/2017   2:38 PM            756 protractor.conf.js
-a----        3/29/2017   2:38 PM           1083 README.md
-a----        3/29/2017   2:38 PM            385 tsconfig.json
-a----        3/29/2017   2:38 PM           2710 tslint.json


PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2> dir


    Directorio: C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:44 PM                e2e
d-----         8/8/2017   4:44 PM                src
-a----        3/29/2017   2:38 PM           1126 .angular-cli.json
-a----        3/29/2017   2:38 PM            245 .editorconfig
-a----        3/29/2017   2:38 PM            516 .gitignore
-a----        4/24/2017   6:42 PM           4096 ._.angular-cli.json
-a----        4/24/2017   6:42 PM           4096 ._.editorconfig
-a----        4/24/2017   6:42 PM           4096 ._.gitignore
-a----        4/24/2017   6:42 PM           4096 ._e2e
-a----        4/24/2017   6:42 PM           4096 ._karma.conf.js
-a----        4/24/2017   6:42 PM           4096 ._package.json
-a----        4/24/2017   6:42 PM           4096 ._protractor.conf.js
-a----        4/24/2017   6:42 PM           4096 ._README.md
-a----        4/24/2017   6:42 PM           4096 ._src
-a----        4/24/2017   6:42 PM           4096 ._tsconfig.json
-a----        4/24/2017   6:42 PM           4096 ._tslint.json
-a----        3/29/2017   2:38 PM           1240 karma.conf.js
-a----        3/29/2017   2:38 PM           1201 package.json
-a----        3/29/2017   2:38 PM            756 protractor.conf.js
-a----        3/29/2017   2:38 PM           1083 README.md
-a----        3/29/2017   2:38 PM            385 tsconfig.json
-a----        3/29/2017   2:38 PM           2710 tslint.json


PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2> cd src
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src> dir


    Directorio: C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:44 PM                app
d-----         8/8/2017   4:44 PM                assets
d-----         8/8/2017   4:44 PM                environments
-a----        4/24/2017   6:42 PM           4096 ._app
-a----        4/24/2017   6:42 PM           4096 ._assets
-a----        4/24/2017   6:42 PM           4096 ._environments
-a----        4/24/2017   6:42 PM           4096 ._favicon.ico
-a----        4/24/2017   6:42 PM           4096 ._index.html
-a----        4/24/2017   6:42 PM           4096 ._main.ts
-a----        4/24/2017   6:42 PM           4096 ._polyfills.ts
-a----        4/24/2017   6:42 PM           4096 ._styles.css
-a----        4/24/2017   6:42 PM           4096 ._test.ts
-a----        4/24/2017   6:42 PM           4096 ._tsconfig.app.json
-a----        4/24/2017   6:42 PM           4096 ._tsconfig.spec.json
-a----        4/24/2017   6:42 PM           4096 ._typings.d.ts
-a----        3/29/2017   2:38 PM           5430 favicon.ico
-a----        3/29/2017   2:38 PM            295 index.html
-a----        3/29/2017   2:38 PM            336 main.ts
-a----        3/29/2017   2:38 PM           2429 polyfills.ts
-a----        3/29/2017   2:38 PM             80 styles.css
-a----        3/29/2017   2:38 PM           1081 test.ts
-a----        3/29/2017   2:38 PM            397 tsconfig.app.json
-a----        3/29/2017   2:38 PM            469 tsconfig.spec.json
-a----        3/29/2017   2:38 PM            104 typings.d.ts


PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src> cd app
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src\app> dir


    Directorio: C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src\app


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:44 PM                images
-a----        4/24/2017   6:42 PM           4096 ._app.component.css
-a----        4/24/2017   6:42 PM           4096 ._app.component.html
-a----        4/24/2017   6:42 PM           4096 ._app.component.spec.ts
-a----        4/24/2017   6:42 PM           4096 ._app.component.ts
-a----        4/24/2017   6:42 PM           4096 ._app.module.ts
-a----        4/24/2017   6:42 PM           4096 ._images
-a----        3/29/2017   2:38 PM          25829 app.component.css
-a----        3/29/2017   2:38 PM          10463 app.component.html
-a----        3/29/2017   2:38 PM           1000 app.component.spec.ts
-a----        3/29/2017   2:38 PM           1222 app.component.ts
-a----        3/29/2017   2:38 PM            472 app.module.ts


PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src\app> cd ..
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src> ng serve
node_modules appears empty, you may need to run `npm install`
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src> npm install

> node-sass@4.5.3 install C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\node_modules\node-sass
> node scripts/install.js

Cached binary found at C:\Users\rober\scoop\persist\nodejs\cache\node-sass\4.5.3\win32-x64-57_binding.node

> node-sass@4.5.3 postinstall C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\node_modules\node-sass
> node scripts/build.js

Binary found at C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\node_modules\node-sass\vendor\win32-x64-57\binding.node
Testing binary
Binary is fine
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 1063 packages in 118.909s
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src> npm -g @angular/cli

Usage: npm <command>

where <command> is one of:
    access, adduser, bin, bugs, c, cache, completion, config,
    ddp, dedupe, deprecate, dist-tag, docs, doctor, edit,
    explore, get, help, help-search, i, init, install,
    install-test, it, link, list, ln, login, logout, ls,
    outdated, owner, pack, ping, prefix, prune, publish, rb,
    rebuild, repo, restart, root, run, run-script, s, se,
    search, set, shrinkwrap, star, stars, start, stop, t, team,
    test, tst, un, uninstall, unpublish, unstar, up, update, v,
    version, view, whoami

npm <command> -h     quick help on <command>
npm -l           display full usage info
npm help <term>  search for help on <term>
npm help npm     involved overview

Specify configs in the ini-formatted file:
    C:\Users\rober\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config

npm@5.3.0 C:\Users\rober\scoop\apps\nodejs\8.2.1\node_modules\npm
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src> npm install -g @angular/cli
C:\Users\rober\scoop\persist\nodejs\bin\ng -> C:\Users\rober\scoop\persist\nodejs\bin\node_modules\@angular\cli\bin\ng
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\@angular\cli\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ @angular/cli@1.2.7
added 115 packages, removed 4 packages and updated 9 packages in 105.499s
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src> ls


    Directorio: C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:44 PM                app
d-----         8/8/2017   4:44 PM                assets
d-----         8/8/2017   4:44 PM                environments
-a----        4/24/2017   6:42 PM           4096 ._app
-a----        4/24/2017   6:42 PM           4096 ._assets
-a----        4/24/2017   6:42 PM           4096 ._environments
-a----        4/24/2017   6:42 PM           4096 ._favicon.ico
-a----        4/24/2017   6:42 PM           4096 ._index.html
-a----        4/24/2017   6:42 PM           4096 ._main.ts
-a----        4/24/2017   6:42 PM           4096 ._polyfills.ts
-a----        4/24/2017   6:42 PM           4096 ._styles.css
-a----        4/24/2017   6:42 PM           4096 ._test.ts
-a----        4/24/2017   6:42 PM           4096 ._tsconfig.app.json
-a----        4/24/2017   6:42 PM           4096 ._tsconfig.spec.json
-a----        4/24/2017   6:42 PM           4096 ._typings.d.ts
-a----        3/29/2017   2:38 PM           5430 favicon.ico
-a----        3/29/2017   2:38 PM            295 index.html
-a----        3/29/2017   2:38 PM            336 main.ts
-a----        3/29/2017   2:38 PM           2429 polyfills.ts
-a----        3/29/2017   2:38 PM             80 styles.css
-a----        3/29/2017   2:38 PM           1081 test.ts
-a----        3/29/2017   2:38 PM            397 tsconfig.app.json
-a----        3/29/2017   2:38 PM            469 tsconfig.spec.json
-a----        3/29/2017   2:38 PM            104 typings.d.ts


PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\src> cd ..
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2> cd ..
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp> ls


    Directorio: C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:50 PM                angular2
-a----        4/24/2017   6:42 PM           4096 ._angular2


PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp> ng new angular2 --skip-git
Directory C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2 exists and is already an Angular CLI project.
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp> cd .\angular2\
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2> ls


    Directorio: C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2


Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----         8/8/2017   4:44 PM                e2e
d-----         8/8/2017   4:50 PM                node_modules
d-----         8/8/2017   4:44 PM                src
-a----        3/29/2017   2:38 PM           1126 .angular-cli.json
-a----        3/29/2017   2:38 PM            245 .editorconfig
-a----        3/29/2017   2:38 PM            516 .gitignore
-a----        4/24/2017   6:42 PM           4096 ._.angular-cli.json
-a----        4/24/2017   6:42 PM           4096 ._.editorconfig
-a----        4/24/2017   6:42 PM           4096 ._.gitignore
-a----        4/24/2017   6:42 PM           4096 ._e2e
-a----        4/24/2017   6:42 PM           4096 ._karma.conf.js
-a----        4/24/2017   6:42 PM           4096 ._package.json
-a----        4/24/2017   6:42 PM           4096 ._protractor.conf.js
-a----        4/24/2017   6:42 PM           4096 ._README.md
-a----        4/24/2017   6:42 PM           4096 ._src
-a----        4/24/2017   6:42 PM           4096 ._tsconfig.json
-a----        4/24/2017   6:42 PM           4096 ._tslint.json
-a----        3/29/2017   2:38 PM           1240 karma.conf.js
-a----         8/8/2017   4:50 PM         280701 package-lock.json
-a----        3/29/2017   2:38 PM           1201 package.json
-a----        3/29/2017   2:38 PM            756 protractor.conf.js
-a----        3/29/2017   2:38 PM           1083 README.md
-a----        3/29/2017   2:38 PM            385 tsconfig.json
-a----        3/29/2017   2:38 PM           2710 tslint.json


PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2> npm install bootstrap@3
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ bootstrap@3.3.7
added 115 packages in 38.29s
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2> npm install fuelux

> fuelux@3.16.1 postinstall C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2\node_modules\fuelux
> node postinstall.js

npm WARN eslint-plugin-react@7.1.0 requires a peer of eslint@^3.0.0 || ^4.0.0 but none was installed.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ fuelux@3.16.1
added 122 packages in 28.801s
PS C:\02_04\End\linked-in-learning-full-stack-app-angular-spring-boot\src\main\webapp\angular2> ng serve
Your global Angular CLI version (1.2.7) is greater than your local
version (1.0.0-rc.4). The local Angular CLI version is used.

To disable this warning use "ng set --global warnings.versionMismatch=false".
** NG Live Development Server is running on http://localhost:4200 **
Hash: 6fdd759fca460ee58782
Time: 10036ms
chunk    {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 158 kB {4} [initial] [rendered]
chunk    {1} main.bundle.js, main.bundle.js.map (main) 41.4 kB {3} [initial] [rendered]
chunk    {2} styles.bundle.js, styles.bundle.js.map (styles) 9.77 kB {4} [initial] [rendered]
chunk    {3} vendor.bundle.js, vendor.bundle.js.map (vendor) 2.69 MB [initial] [rendered]
chunk    {4} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]
webpack: Compiled successfully.


zen consultora

Blogger Widgets