w3tecch / express-typescript-boilerplate

A delightful way to building a RESTful API with NodeJs & TypeScript by @w3tecch
MIT License
3.31k stars 905 forks source link

'yarn start serve' does not start the server #250

Open smuralimohan opened 2 years ago

smuralimohan commented 2 years ago

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\samplesserver\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 commented 2 years ago

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.