express-mongodb-rest-api-boilerplate
express-mongodb-rest-api-boilerplate copied to clipboard
hangs on yarn start?
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
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/
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?
It seems to me that everything is starting up for you, and you just need to go to the link http://localhost:8000
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...
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.