Tuesday, 25 April 2017

What's the correct configuration of main in angular-cli.json to use express?

I'm trying to configure a express server using Angular 2, in many configuration examples I saw the angular-cli.json being changed in the main configuration pointing to a server.js file.

But when I change it, the application doesn't start on ng serve.

I would have to call the main.ts file inside of the server.js? How?

Ex:

"main": "main.ts"
"main": "server.ts"

My express server is very simple, I used as base the following: https://tableless.com.br/criando-uma-aplicacao-de-chat-simples-com-nodejs-e-socket-io/



via Lucas Thibau Paulino

No comments:

Post a Comment