express-mongodb-rest-api-boilerplate icon indicating copy to clipboard operation
express-mongodb-rest-api-boilerplate copied to clipboard

hangs on yarn start?

Open adnan-smlatic opened this issue 2 years ago • 5 comments
trafficstars

i've tried running an instance of this locally and it just hangs on this? I have a redis and mongodb instance running, and there aren't any errors in the log file, did i miss something I'm supposed to do?

yarn start
yarn run v1.22.19
warning ../../package.json: No license field
$ npm run rm:public && cross-env NODE_ENV=production ts-node --files -r tsconfig-paths/register ./src

> [email protected] rm:public
> rm -rf ./public

adnan-smlatic avatar Sep 27 '23 18:09 adnan-smlatic

Hello, sorry for the late reply. Were you able to launch it? I use mac os and it runs without issues for me.

yarn install cp .env.example .env yarn start

http://localhost:8000/

watscho avatar Oct 04 '23 18:10 watscho

hey, i have not been able to get it to run at all, it always just hangs on what i pasted above

I am running redis locally, tried connecting to mongo locally and on atlas but neither seems to work, am I missing some step?

adnan-smlatic avatar Oct 12 '23 13:10 adnan-smlatic

It seems to me that everything is starting up for you, and you just need to go to the link http://localhost:8000

watscho avatar Oct 12 '23 16:10 watscho

Same issue here.

I solved it by changing

"start": "npm run rm:public && cross-env NODE_ENV=production ts-node --files -r tsconfig-paths/register ./src",

to

"start": "cross-env NODE_ENV=production ts-node --files -r tsconfig-paths/register ./src",

The terminal freezes at rm -rf ./public because there is no public folder in the project... I guess...

LeonardoVenezia avatar Mar 03 '24 15:03 LeonardoVenezia

In theory, the terminal should not freeze for this reason. It probably depends on the operating system. In any case, everything works well for me.

watscho avatar Mar 05 '24 18:03 watscho