Coder Social home page Coder Social logo

ansrivas / angular2-flask Goto Github PK

View Code? Open in Web Editor NEW
151.0 151.0 46.0 3 MB

Simple angular2 app with python-flask backend ( Learning Angular2 )

License: MIT License

TypeScript 19.40% HTML 13.73% Python 8.11% CSS 15.75% JavaScript 42.33% Dockerfile 0.69%
angular2 angular2-flask flask flask-backend frontend python

angular2-flask's People

Contributors

ansrivas avatar davideast avatar dependabot-preview[bot] avatar dependabot[bot] avatar lukefarran avatar rkirov avatar wardbell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular2-flask's Issues

got some issue running the backend that is a bit cryptic to me

(flasker)samantha@morpheus:~/work/angular2-flask/backend$ python run.py
Logging into directory logs

2017-03-04 17:56:41 [ERROR ] [flask_app.server.main:59 ]
(flasker)samantha@morpheus:/work/angular2-flask/backend$ ls
Dockerfile flask_app logs requirements.txt run.py
(flasker)samantha@morpheus:
/work/angular2-flask/backend$ cat logs/
all.log error.log
(flasker)samantha@morpheus:/work/angular2-flask/backend$ cat logs/error.log
2017-03-04 17:56:41 [ERROR ] [flask_app.server.main:59 ]
(flasker)samantha@morpheus:
/work/angular2-flask/backend$ cat logs/all.log
2017-03-04 17:56:41 [DEBUG ] [passlib.registry.register_crypt_:294] registered 'bcrypt' handler: <class 'passlib.handlers.bcrypt.bcrypt'>
2017-03-04 17:56:41 [DEBUG ] [passlib.registry.register_crypt_:294] registered 'des_crypt' handler: <class 'passlib.handlers.des_crypt.des_crypt'>
2017-03-04 17:56:41 [DEBUG ] [passlib.registry.register_crypt_:294] registered 'pbkdf2_sha256' handler: <class 'passlib.handlers.pbkdf2.pbkdf2_sha256'>
2017-03-04 17:56:41 [DEBUG ] [passlib.registry.register_crypt_:294] registered 'pbkdf2_sha512' handler: <class 'passlib.handlers.pbkdf2.pbkdf2_sha512'>
2017-03-04 17:56:41 [DEBUG ] [passlib.registry.register_crypt_:294] registered 'sha256_crypt' handler: <class 'passlib.handlers.sha2_crypt.sha256_crypt'>
2017-03-04 17:56:41 [DEBUG ] [passlib.registry.register_crypt_:294] registered 'sha512_crypt' handler: <class 'passlib.handlers.sha2_crypt.sha512_crypt'>
2017-03-04 17:56:41 [DEBUG ] [passlib.registry.register_crypt_:294] registered 'plaintext' handler: <class 'passlib.handlers.misc.plaintext'>
2017-03-04 17:56:41 [ERROR ] [flask_app.server.main:59 ]
(flasker)samantha@morpheus:~/work/angular2-flask/backend$

Any enlightenment much appreciated. This is on brand new virtualenv on python2.7.12.

No module named pylogging

I followed the process for getting up and running.

The pylogging module is installing when I run $ sudo pip install -r requirements.txt

However when I run python run.py I am getting the error "No module named pylogging". I'm not quite sure if this is an issue on my end or an issue with the files.

Cannot run on production mode

Hi, I'm developing a little app up on this Angular app. I'm new with angular and his ecosystem...
I builded my app for production with command
npm run build:prod
and then I would like to serve as prod, but with
npm run server:prod
I get an error:

iMacGiorgio:front nemesix$ npm run server:prod

> [email protected] server:prod /Users/nemesix/Sviluppo/prove/angular2-flask-master/front
> http-server dist -c-1 --cors

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE 0.0.0.0:8080
    at Object.exports._errnoException (util.js:1022:11)
    at exports._exceptionWithHostPort (util.js:1045:20)
    at Server._listen2 (net.js:1262:14)
    at listen (net.js:1298:10)
    at doListening (net.js:1397:7)
    at _combinedTickCallback (internal/process/next_tick.js:77:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Module.runMain (module.js:607:11)
    at run (bootstrap_node.js:420:7)
    at startup (bootstrap_node.js:139:9)

npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "server:prod"
npm ERR! node v7.3.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] server:prod: `http-server dist -c-1 --cors`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] server:prod script 'http-server dist -c-1 --cors'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     http-server dist -c-1 --cors
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-starter
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/nemesix/Sviluppo/prove/angular2-flask-master/front/npm-debug.log

so I tried the following
npm run server:prod:ci
and this show me the valid addresses as http://<< IP >>:3000
and in the browser I can see the login page, but the backend server can not be reached.

[Wed Oct 11 2017 19:06:54 GMT+0200 (CEST)] "POST /api/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/61.0.3163.100 Safari/537.36"
[Wed Oct 11 2017 19:06:54 GMT+0200 (CEST)] "POST /api/login" Error (404): "Not found"
[Wed Oct 11 2017 19:06:54 GMT+0200 (CEST)] "POST /api/login" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML,like Gecko) Chrome/61.0.3163.100 Safari/537.36"
[Wed Oct 11 2017 19:06:54 GMT+0200 (CEST)] "POST /api/login" Error (404): "Not found"

I left the backend as localhost:8080,
I ask you kindly what I can do to run the app
thanks in advance
Regards
Giorgio

In the frontend, where is it specifying the backend's URL?

I'm using your application as example to develop a Flask+Angular2. I understood why you're running Angular apart from the Flask, but I couldn't find where you're setting the backend URL in development. I mean, the IP:PORT. Is there any configuration file I couldn't find? In production, I've seen the nginx will handle it. But how does it work in development?

webpack vs systemjs

Hi,
Is it good to use webpack or systemjs ? which is a better option?

Thanks,
Murugesh

Trying to decode jwt token

Hi
I'm trying your demo, to decode the jwt token with a simple code but I get an error:
where in AuthenticationService there is the TODO
//TODO: Decode token and get expiry time from here, someone has to implement this. :(
before that function, I added a new function :

  public decodeJwtToken(token): any {
      let playload = JSON.parse(atob(token.split('.')[1]));
      // console.log(JSON.stringify(playload));
      return playload;
  }

and after the TODO line I've added
let decoded = this.decodeJwtToken(token);
then when I try to login o got a "Server error" message, but in chrome console I get

this.decodeJwtToken is not a function
webpackJsonpac__name_.34.AuthenticationService.handleError @ authentication.service.ts:120

I'm new on angular and webpack.
So I ask you what I need to do to resolve the issue?

thanks
Giorgio

docker-compose up

with docker-compose up i get app in the below
http://DOCKER_IP:3000/#/login

but when i login it says invalid password. with admin/admin credentials.

~/angular2-flask/front$ docker build --no-cache -t frontend/angular2:latest .
Sending build context to Docker daemon 1.206 MB
Step 1 : FROM mhart/alpine-node:6.4.0
---> ecd37ad77c2b
Step 2 : RUN adduser -D app && mkdir -p /front
---> Running in 1ef69a561270
---> 77565990f52a
Removing intermediate container 1ef69a561270
Step 3 : COPY package.json typedoc.json tsconfig.json tslint.json /front/
---> 474c51d956b0
Removing intermediate container 8ebda7dfffac
Step 4 : COPY src /front/src/
---> 69f77cfdc12d
Removing intermediate container d1e2b449a74d
Step 5 : COPY config /front/config/
---> 77319948e1ff
Removing intermediate container 17a6c21e84c9
Step 6 : COPY assets /front/assets/
---> e5d88581a163
Removing intermediate container a50253ad0804
Step 7 : WORKDIR /front
---> Running in 26fec92cf03b
---> ae1077c83aff
Removing intermediate container 26fec92cf03b
Step 8 : RUN npm install rimraf webpack typescript -g && npm install && npm run build:prod && chown -R app:app /front
---> Running in e26e82debe5e
/usr/bin/rimraf -> /usr/lib/node_modules/rimraf/bin.js
/usr/bin/tsc -> /usr/lib/node_modules/typescript/bin/tsc
/usr/bin/tsserver -> /usr/lib/node_modules/typescript/bin/tsserver
/usr/bin/webpack -> /usr/lib/node_modules/webpack/bin/webpack.js
/usr/lib
+-- [email protected]
| -- [email protected] | +-- [email protected] | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] -- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] |-- [email protected]
+-- [email protected]
| +-- [email protected]
| | -- [email protected] |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] |-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| | -- [email protected] | |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] |-- [email protected]
| -- [email protected] +-- [email protected] |-- [email protected]
+-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] |-- [email protected]
+-- [email protected]
| +-- [email protected]
| -- [email protected] | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | |-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | -- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | |-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] |-- [email protected]
| +-- [email protected]
| | -- [email protected] | | +-- [email protected] | |-- [email protected]
| -- [email protected] -- [email protected]
+-- [email protected]
-- [email protected] -- [email protected]

npm WARN optional Skipping failed optional dependency /webpack/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN deprecated [email protected]: wrench.js is deprecated! You should check out fs-extra (https://github.com/jprichardson/node-fs-extra) for any operations you were using wrench for. Thanks for all the usage over the years.
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN prefer global [email protected] should be installed with -g
[email protected] /front
+-- @angular/[email protected]
+-- @angular/[email protected]
+-- @angular/[email protected]
+-- @angular/[email protected]
+-- @angular/[email protected]
+-- @angular/[email protected]
+-- @angular/[email protected]
+-- @angular/[email protected]
+-- @angular/[email protected]
+-- @angularclass/[email protected]
| -- [email protected] | +-- [email protected] | +-- [email protected] |-- [email protected]
+-- @angularclass/[email protected]
+-- @angularclass/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- @types/[email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | |-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| -- [email protected] | +-- [email protected] | +-- [email protected] | |-- [email protected]
| -- [email protected] +-- [email protected] |-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | |-- [email protected]
| | +-- [email protected]
| | -- [email protected] |-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | |-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | -- [email protected] | | | |-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | |-- [email protected]
| | | -- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | -- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | |-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | |-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | |-- [email protected]
| | -- [email protected] | | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| | -- [email protected] | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| | -- [email protected] |-- [email protected]
+-- [email protected]
+-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] |-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | |-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | | -- [email protected] | | | | | +-- [email protected] | | | | |-- [email protected]
| | | | -- [email protected] | | | +-- [email protected] | | | |-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | -- [email protected] |-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] |-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] |-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | -- [email protected] | |-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | |-- [email protected]
| | -- [email protected] | | +-- [email protected] | | |-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| | -- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | |-- [email protected]
| | | | -- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | |-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | | |-- [email protected]
| | | -- [email protected] | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] |-- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] | |-- [email protected]
| -- [email protected] |-- [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | | |-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | -- [email protected] | +-- [email protected] |-- [email protected]
+-- [email protected]
+-- [email protected]
| -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] |-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| -- [email protected] | +-- [email protected] | |-- [email protected]
| | -- [email protected] |-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | |-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | |-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | |-- [email protected]
| | | -- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | |-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| | -- [email protected] | |-- [email protected]
| | -- [email protected] |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | -- [email protected] |-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | |-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | -- [email protected] | +-- [email protected] |-- [email protected]
| -- [email protected] | +-- [email protected] |-- [email protected]
+-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] |-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| -- [email protected] |-- [email protected]
+-- [email protected]
| +-- [email protected]
| | -- [email protected] |-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] |-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | |-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | -- [email protected] | | | |-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | |-- [email protected]
| +-- [email protected]
| -- [email protected] |-- [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | |-- [email protected]
| +-- [email protected]
| | -- [email protected] | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | -- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | |-- [email protected]
| | | | -- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | |-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | -- [email protected] | | +-- [email protected] | |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | |-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | |-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | |-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| | -- [email protected] | +-- [email protected] |-- [email protected]
| -- [email protected] +-- [email protected] |-- [email protected]
| +-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | |-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | |-- [email protected]
| -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] |-- [email protected]
`-- [email protected]

_### npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
_

[email protected] prebuild:prod /front
npm run clean:dist

[email protected] clean:dist /front
npm run rimraf -- dist

[email protected] rimraf /front
rimraf "dist"

[email protected] build:prod /front
webpack --config config/webpack.prod.js --progress --profile --colors --display-error-details --display-cached --bail
1967372ms5297ms optim105ms emit
Hash: 9a0b8d0491f38027d86a
Version: webpack 1.13.2
Time: 43635ms
Asset Size Chunks Chunk Names
assets/icon/apple-icon-144x144.png 8.43 kB [emitted]
polyfills.535f8fdcc5aaa05a75ac.bundle.js 90.9 kB 0 [emitted] polyfills
main.e046faa95ba926b46b70.bundle.js 146 kB 2 [emitted] main
polyfills.535f8fdcc5aaa05a75ac.bundle.map 722 kB 0 [emitted] polyfills
vendor.41b53236352eafe00ae9.bundle.map 5.6 MB 1 [emitted] vendor
main.e046faa95ba926b46b70.bundle.map 1.05 MB 2 [emitted] main
assets/data.json 30 bytes [emitted]
assets/manifest.json 769 bytes [emitted]
assets/css/font-awesome.min.css 29.1 kB [emitted]
assets/robots.txt 31 bytes [emitted]
assets/humans.txt 251 bytes [emitted]
assets/css/style.css 2.29 kB [emitted]
assets/fonts/fontawesome-webfont.woff 90.4 kB [emitted]
assets/fonts/fontawesome-webfont.ttf 153 kB [emitted]
assets/icon/android-icon-144x144.png 8.43 kB [emitted]
assets/icon/android-icon-36x36.png 2.3 kB [emitted]
assets/icon/android-icon-192x192.png 9.71 kB [emitted]
assets/icon/android-icon-48x48.png 2.92 kB [emitted]
assets/icon/android-icon-96x96.png 5.6 kB [emitted]
assets/icon/apple-icon-114x114.png 6.55 kB [emitted]
assets/fonts/fontawesome-webfont.woff2 71.9 kB [emitted]
assets/icon/apple-icon-120x120.png 6.92 kB [emitted]
assets/icon/apple-icon-152x152.png 8.99 kB [emitted]
vendor.41b53236352eafe00ae9.bundle.js 824 kB 1 [emitted] vendor
assets/icon/apple-icon-180x180.png 11 kB [emitted]
assets/icon/apple-icon-57x57.png 3.4 kB [emitted]
assets/icon/apple-icon-60x60.png 3.56 kB [emitted]
assets/icon/apple-icon-72x72.png 4.23 kB [emitted]
assets/icon/apple-icon-76x76.png 4.46 kB [emitted]
assets/icon/apple-icon-precomposed.png 10.3 kB [emitted]
assets/icon/browserconfig.xml 281 bytes [emitted]
assets/icon/apple-icon.png 10.3 kB [emitted]
assets/icon/favicon-16x16.png 1.52 kB [emitted]
assets/icon/favicon-96x96.png 5.6 kB [emitted]
assets/icon/favicon-32x32.png 2.07 kB [emitted]
assets/icon/favicon.ico 1.15 kB [emitted]
assets/icon/ms-icon-144x144.png 8.43 kB [emitted]
assets/icon/ms-icon-310x310.png 24.1 kB [emitted]
assets/icon/ms-icon-70x70.png 4.12 kB [emitted]
assets/icon/ms-icon-150x150.png 8.88 kB [emitted]
assets/img/angular-logo.png 19 kB [emitted]
assets/img/angularclass-avatar.png 32.8 kB [emitted]
assets/mock-data/mock-data.json 22 bytes [emitted]
assets/img/logo-recogizer.png 56.3 kB [emitted]
assets/img/angularclass-logo.png 36.7 kB [emitted]
assets/icon/android-icon-72x72.png 4.23 kB [emitted]
index.html 3.25 kB [emitted]
+ 982 hidden modules

WARNING in polyfills.535f8fdcc5aaa05a75ac.bundle.js from UglifyJs
Condition always true [.//angular2-template-loader!./src/polyfills.browser.ts:34,4]
Dropping unreachable code [./
/angular2-template-loader!./src/polyfills.browser.ts:41,2]
Condition left of || always false [.//source-map-loader!.//zone.js/dist/zone.js:623,40]
Condition left of || always false [.//source-map-loader!.//zone.js/dist/zone.js:624,39]
Dropping side-effect-free statement [.//source-map-loader!.//zone.js/dist/zone.js:652,0]
Side effects in initialization of unused variable Zone [.//source-map-loader!.//zone.js/dist/zone.js:152,0]

WARNING in vendor.41b53236352eafe00ae9.bundle.js from UglifyJs
Condition always true [.//angular2-template-loader!./src/vendor.browser.ts:23,4]
Dropping unreachable code [./
/angular2-template-loader!./src/vendor.browser.ts:29,2]
Side effects in initialization of unused variable TypeModifier [.//@angular/compiler/src/output/output_ast.js:19,0]
Side effects in initialization of unused variable BuiltinMethod [./
/@angular/compiler/src/output/output_ast.js:275,0]
Side effects in initialization of unused variable StmtModifier [.//@angular/compiler/src/output/output_ast.js:509,0]
Side effects in initialization of unused variable freeExports [./
/rxjs/util/root.js:12,0]
Side effects in initialization of unused variable freeModule [.//rxjs/util/root.js:13,0]
Side effects in initialization of unused variable ProviderAstType [./
/@angular/compiler/src/template_ast.js:231,0]
Side effects in initialization of unused variable PropertyBindingType [.//@angular/compiler/src/template_ast.js:272,0]
Side effects in initialization of unused variable RequestMethod [./
/@angular/http/src/enums.js:22,0]
Side effects in initialization of unused variable ReadyState [.//@angular/http/src/enums.js:37,0]
Side effects in initialization of unused variable ResponseType [./
/@angular/http/src/enums.js:50,0]
Side effects in initialization of unused variable ContentType [.//@angular/http/src/enums.js:64,0]
Non-strict equality against boolean: != true [./
/@angular/compiler/src/html_tags.js:302,0]
Side effects in initialization of unused variable ViewType [.//@angular/core/src/linker/view_type.js:20,0]
Side effects in initialization of unused variable HTMLCollection [./
/@angular/common/src/forms-deprecated/directives/select_multiple_control_value_accessor.js:31,0]
Side effects in initialization of unused variable shim [.//@angular/compiler/src/style_compiler.js:52,0]
Side effects in initialization of unused variable HTMLCollection [./
/@angular/forms/src/directives/select_multiple_control_value_accessor.js:31,0]
Dropping unused variable SAFE_SRCSET_PATTERN [.//@angular/platform-browser/src/security/url_sanitizer.js:39,0]
Side effects in initialization of unused variable matchs [./
/@angular/common/src/facade/intl.js:155,0]
Dropping unused variable __unused [.//@angular/common/src/pipes/async_pipe.js:35,0]
Side effects in initialization of unused variable depTemplates [./
/@angular/compiler/src/runtime_compiler.js:138,0]
Dropping unused variable EVENT [.//@angular/compiler/src/schema/dom_element_schema_registry.js:20,0]
Dropping unused variable __unused [./
/@angular/core/src/di/reflective_injector.js:16,0]
Side effects in initialization of unused variable SecurityContext [.//@angular/core/src/security.js:26,0]
Dropping unused function _fetchSylesFromState [./
/@angular/compiler/src/animation/animation_parser.js:115,0]
Dropping unreachable code [.//@angular/compiler/src/i18n/i18n_html_parser.js:73,0]
Declarations in unreachable code! [./
/@angular/compiler/src/i18n/i18n_html_parser.js:73,0]
Dropping unused variable renderMethod [.//@angular/compiler/src/view_compiler/property_binder.js:67,0]
Dropping unused variable __unused [./
/@angular/core/src/application_common_providers.js:16,0]
Dropping unused variable __unused [.//@angular/core/src/platform_common_providers.js:17,0]
Dropping unreachable code [./
/@angular/router/src/apply_redirects.js:52,0]
Declarations in unreachable code! [.//@angular/router/src/apply_redirects.js:52,0]
Dropping unreachable code [./
/@angularclass/webpack-toolkit/dist/index.js:26,0]
Declarations in unreachable code! [./~/@angularclass/webpack-toolkit/dist/index.js:26,0]

WARNING in main.e046faa95ba926b46b70.bundle.js from UglifyJs
Condition always false [.//angular2-template-loader!./src/main.browser.ts:52,4]
Dropping unreachable code [./
/angular2-template-loader!./src/main.browser.ts:52,43]
Declarations in unreachable code! [.//angular2-template-loader!./src/main.browser.ts:54,2]
Dropping unused variable ngHmr [./
/angular2-template-loader!./src/main.browser.ts:54,6]
Condition always true [.//angular2-template-loader!./src/platform/environment.ts:15,4]
Dropping unreachable code [./
/angular2-template-loader!./src/platform/environment.ts:27,2]
Child html-webpack-plugin for "index.html":
+ 3 hidden modules
---> cd57d278d154
Removing intermediate container e26e82debe5e
Step 9 : USER app
---> Running in b5cf2a41d98a
---> b2c24fcdbe80
Removing intermediate container b5cf2a41d98a
Step 10 : EXPOSE 8080
---> Running in 6610cac7d28d
---> 8ecf6d897623
Removing intermediate container 6610cac7d28d
Step 11 : CMD npm run server:prod
---> Running in caac2a695b4b
---> c829b11c24e0
Removing intermediate container caac2a695b4b
Successfully built c829b11c24e0

The web app is up http://DOCKER_IP:3000/#/login
but the admin/admin does not work..says wrong password.

route respond with XML

Hi I'm trying to have a route respond with an XML string like at this URL https://demo.twilio.com/docs/voice.xml.

Thanks for trying our documentation. Enjoy!
http://demo.twilio.com/docs/classic.mp3

But I only get formatted HTML.

My test code is below: found In utils\twilio\twilio.component.ts

import { Component } from '@angular/core';
import { Router } from '@angular/router';

@component({
selector: "twilio",
template: <div [outerHTML]="xml"></div>
})

export class TwilioComponent {
xml = '\n' +
'Thanks for trying our documentation. Enjoy!\n' +
'http://demo.twilio.com/docs/classic.mp3\n' +
'';
}
Any suggestions?

Just a question

Apologize me, because of this is not a bug, it's only a question. I am new in Angular 2 and NodeJS, but not in Flask. Why do you need start two server?. It's not enough just the Flask server?. I have understood that the Angular 2 and other .ts files are compiled and then retrieve en Jinja templates as normal .js files. i am wrong??. Please, I would appreciate your help. Thanks!!!!

error

Hi,

I started the backend with no problem, but when I started the front with
npm run server:dev:hmr

I got this error

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\alotfi\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'server:dev:hmr' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preserver:dev:hmr', 'server:dev:hmr', 'postserver:dev:hmr' ]
5 info lifecycle [email protected]preserver:dev:hmr: [email protected]
6 silly lifecycle [email protected]
preserver:dev:hmr: no script for preserver:dev:hmr, continuing
7 info lifecycle [email protected]server:dev:hmr: [email protected]
8 verbose lifecycle [email protected]
server:dev:hmr: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]server:dev:hmr: PATH: C:\Users\alotfi\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\alotfi\mProjects\angular2Projects\angular2-flask\front\node_modules.bin;C:\Users\alotfi\Desktop\myTools\cmder\bin;C:\Users\alotfi\Desktop\myTools\cmder\vendor\git-for-windows\cmd;C:\Users\alotfi\Desktop\myTools\cmder\vendor\conemu-maximus5\ConEmu\Scripts;C:\Users\alotfi\Desktop\myTools\cmder\vendor\conemu-maximus5;C:\Users\alotfi\Desktop\myTools\cmder\vendor\conemu-maximus5\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\Oracle11g_client\product\11.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Novell\ZENworks\bin;C:\Program Files (x86)\Hyland\Web ActiveX;C:\Program Files (x86)\Common Files\EMC;C:\Program Files\Java\jdk1.8.0_91\bin;C:\Python27;C:\Vagrant\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files\Sublime Text 3;C:\Users\alotfi\AppData\Local\atom\bin;C:\Users\alotfi\AppData\Roaming\npm;C:\Program Files\nodejs;C:\Users\alotfi\AppData\Roaming\npm;C:\Users\alotfi\Desktop\myTools\cmder\vendor\git-for-windows\usr\bin;C:\Users\alotfi\Desktop\myTools\cmder\vendor\git-for-windows\usr\share\vim\vim74;C:\Users\alotfi\Desktop\myTools\cmder
10 verbose lifecycle [email protected]
server:dev:hmr: CWD: C:\Users\alotfi\mProjects\angular2Projects\angular2-flask\front
11 silly lifecycle [email protected]server:dev:hmr: Args: [ '/d /s /c', 'npm run server:dev -- --inline --hot' ]
12 silly lifecycle [email protected]
server:dev:hmr: Returned: code: 1 signal: null
13 info lifecycle [email protected]~server:dev:hmr: Failed to exec server:dev:hmr script
14 verbose stack Error: [email protected] server:dev:hmr: npm run server:dev -- --inline --hot
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (C:\Users\alotfi\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at EventEmitter.emit (events.js:172:7)
14 verbose stack at ChildProcess. (C:\Users\alotfi\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at ChildProcess.emit (events.js:172:7)
14 verbose stack at maybeClose (internal/child_process.js:829:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid [email protected]
16 verbose cwd C:\Users\alotfi\mProjects\angular2Projects\angular2-flask\front
17 error Windows_NT 6.1.7601
18 error argv "C:\Program Files\nodejs\node.exe" "C:\Users\alotfi\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "server:dev:hmr"
19 error node v4.6.1
20 error npm v3.10.7
21 error code ELIFECYCLE
22 error [email protected] server:dev:hmr: npm run server:dev -- --inline --hot
22 error Exit status 1
23 error Failed at the [email protected] server:dev:hmr script 'npm run server:dev -- --inline --hot'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the angular2-webpack-starter package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error npm run server:dev -- --inline --hot
23 error You can get information on how to open an issue for this project with:
23 error npm bugs angular2-webpack-starter
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls angular2-webpack-starter
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Reset Token Expire time

Hi,
I like to reset the token expire time on the server and client based on users using the client. No activity timeout at SECURITY_TOKEN_MAX_AGE = 60 * 30. With user activity reset the expire time to current time + SECURITY_TOKEN_MAX_AGE. Any suggestions on how to do this?

Thank you

with virtualenv test getting below error

Requirement already satisfied (use --upgrade to upgrade): WTForms in /usr/local/lib/python2.7/dist-packages (from Flask-WTF>=0.8->Flask-Security==1.7.5->-r requirements.txt (line 4))
/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
(venv) /angular2-flask/backend$ python run.py
Traceback (most recent call last):
File "run.py", line 3, in
from flask_app import server
File "/home/mkmani/angular2-flask/backend/flask_app/server.py", line 5, in
from gevent.wsgi import WSGIServer
ImportError: No module named gevent.wsgi

I get some SSL error

Successfully installed Flask-0.11.1 Flask-Cors-2.1.2 Flask-Login-0.3.2 Flask-Mail-0.9.1 Flask-Principal-0.4.0 Flask-SQLAlchemy-2.1 Flask-Security-1.7.5 Flask-WTF-0.12 Jinja2-2.8 MarkupSafe-0.23 SQLAlchemy-1.0.14 WTForms-2.1 Werkzeug-0.11.10 blinker-1.4 click-6.6 gevent-1.1.2 greenlet-0.4.10 itsdangerous-0.24 passlib-1.6.5
/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning

not quite what I want

This seems to be running two servers, one on frontend and one on back rather than having the backend simply serve up the app, which I imagine would get rid of the CORS bits. Or am I missing something?

Containers on AWS - Elastic Beanstalk - Dockerrun.aws.json

I love this app. trying to load on the containers on AWS - Elastic Beanstalk. Every time I load and install the Dockerrun.aws.json. keep changing the Dockerrun.aws.json with different errors. Now I'm getting this error
"Encountered error starting new ECS task: { "failures": [ { "reason": "RESOURCE:MEMORY", "arn": "arn:aws:ecs:us-west-2:016511600475:container-instance/cc20f5bf-7349-48c7-94a3-512df68b9962" } ], "tasks": [] }"

does anyone know the correct configuration for Dockerrun.aws.json. This is what i have now

{
"AWSEBDockerrunVersion": 2,
"volumes": [
{
"name": "backend-v"
},
{
"name": "frontend-v"
}
],
"containerDefinitions": [
{
"name": "backend-c",
"image": ".dkr.ecr.us-west-2.amazonaws.com/apptbot/server",
"essential": true,
"memory": 4096,
"mountPoints": [
{
"sourceVolume": "backend-v",
"containerPath": "/usr/src/app/backend",
"readOnly": true
}
]
},
{
"name": "frontend-c",
"image": ".dkr.ecr.us-west-2.amazonaws.com/apptbot/frontend",
"essential": true,
"portMappings": [
{
"hostPort": 3000,
"containerPort": 80
}
],
"links": [
"backend-c"
],
"mountPoints": [
{
"sourceVolume": "frontend-v",
"containerPath": "/var/www/front"
}
],
"memory": 4096
}
]
}

Cannot find module 'assets-webpack-plugin'

Hello,
I would like to try your solution.
I have done all step for the installation. But I have a problem. Can you help me please.

npm-debug.log.zip

Best regards.

When I run this command : npm run server:dev:hmr
npm ERR! Linux 4.4.0-62-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "server:dev" "--" "--inline" "--hot"
npm ERR! node v7.4.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] server:dev: webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/ "--inline" "--hot"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] server:dev script 'webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/ "--inline" "--hot"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.

For "sudo npm install webpack-dev-server rimraf webpack typescript -g" command : /usr/local/lib
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

But for npm install :
front
├─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ UNMET PEER DEPENDENCY [email protected]
│ └─┬ [email protected]
│ └── [email protected]
└─┬ [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.