Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hangs on yarn start? #36

Open
adnan-smlatic opened this issue Sep 27, 2023 · 5 comments
Open

hangs on yarn start? #36

adnan-smlatic opened this issue Sep 27, 2023 · 5 comments

Comments

@adnan-smlatic
Copy link

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

> express-mongodb-rest-api-boilerplate@1.0.3 rm:public
> rm -rf ./public

@watscho
Copy link
Owner

watscho commented Oct 4, 2023

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/

@adnan-smlatic
Copy link
Author

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?

@watscho
Copy link
Owner

watscho commented Oct 12, 2023

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

@LeonardoVenezia
Copy link

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...

@watscho
Copy link
Owner

watscho commented Mar 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants