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

Unable to run the application with docker desktop. #143

Closed
khangnguyen2100 opened this issue Dec 11, 2023 · 3 comments
Closed

Unable to run the application with docker desktop. #143

khangnguyen2100 opened this issue Dec 11, 2023 · 3 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@khangnguyen2100
Copy link

Hi just found your repo and very and I'm very impressed with your work,
So I realy want to run your application to see and learn the technologies you use in this project.

But I'm facing a huge problem I can't open the application even though I followed your instructions.
When I run the command "skaffold dev" everything look like works perfectly but when I access http://localhost:3000
it doesn't work.

I don't know what I did wrong and I hope you can help.
Thank you.

Screenshot 2023-12-11 175801

@thasup
Copy link
Owner

thasup commented Dec 17, 2023

I've confirmed that it can still run without a problem on my machine.

Have you ever set your custom domain name in this file (C:\Windows\System32\drivers\etc\hosts) and then saved as an admin before?

127.0.0.1 your-custom-domain.com

Please also make sure that your Docker Desktop has Kubernetes enabled in its settings.

@thasup thasup added the help wanted Extra attention is needed label Dec 17, 2023
@thasup thasup self-assigned this Dec 17, 2023
@khangnguyen2100
Copy link
Author

Thank you very much for taking the time to help me,

I have found my problem. because I don't have any products in the database yet so when I call API "products/bestseller" it returns me as undefined.
So there is some problem with NextJS when generate the page and it causes error.
I tried return an empty array and it ran the project perfectly.

image

Thank you again for your help and sharing this great project with the community. 😊😊😊

@thasup
Copy link
Owner

thasup commented Dec 17, 2023

I see, Thank you so much for helping me find out what I didn't handle it properly. 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants