express-typescript-boilerplate icon indicating copy to clipboard operation
express-typescript-boilerplate copied to clipboard

'yarn start serve' does not start the server

Open smuralimohan opened this issue 2 years ago • 1 comments

Hi,

When I ran the command - yarn start serve , the following shows up on the console, but the webserver is not running at all.

_$ nps serve nps is executing serve : nps banner.serve && nodemon --watch src --watch .env nps is executing banner.serve : ts-node --transpile-only ./commands/banner.ts serve


/ |/ _ \ '\ \ / / _
__ \ / | \ V / / |/_|_| _/ __|

[nodemon] 1.18.9 [nodemon] to restart at any time, enter rs [nodemon] watching: E:\Work\TymePe\samples_server\express-typescript-boilerplate\src/**/* .env_

I tried telnetting using- telnet localhost 3000, telnet 127.0.0.1 3000 and telnet 0.0.0.0 3000 etc... but it says that the port is not open. Connecting To 127.0.0.1...Could not open connection to the host, on port 3000: Connect failed

Am I missing something?

smuralimohan avatar Dec 30 '21 13:12 smuralimohan

I have also put the following statement in src/loaders/expressLoader.ts, but nothing is printed to the console.

export const expressLoader: MicroframeworkLoader = (settings: MicroframeworkSettings | undefined) => { console.log('Server listening on port::', env.app.port);

Am I missing any configuration or set up steps? Please help.

smuralimohan avatar Dec 30 '21 15:12 smuralimohan