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

WebUI - full address #7

Open
benjiworld opened this issue Jun 30, 2023 · 4 comments
Open

WebUI - full address #7

benjiworld opened this issue Jun 30, 2023 · 4 comments

Comments

@benjiworld
Copy link

benjiworld commented Jun 30, 2023

Hello, I've been able (with some fixes) to execute and run via docker-compose the server. Sending /link to the group the temporary token is correctly received. But pointing to http://somehost:4479 gives this result:
{
"error": "code=404, message=Not Found",
"message": "Not Found"
}

What am I doing wrong?
Is there any deep page to reach, for example

http://somehost:4479/somepageWebUI

Thank you advance, I'd really like to give your project a try...

@billy4479
Copy link
Owner

Hi,
it's been a loooong time since I've wrote any code for this project, I don't support it anymore and I should probably archive it.

Anyways, if I remember correctly, if you're using the default docker compose file you should then have a container for the backend and one for the frontend (and various others, it was a mess, I admit it).

  • The backend is available on port 4479, on the "/api" route. If you're a little familiar with Go code you can check api.go to see the available endpoints.
  • The frontend should be available on port 3000, and "/" should give you the landing page if I remember correctly.

Give it a try, feel free to do whatever you want with it. Let me know if you need any more help :)

@benjiworld
Copy link
Author

Thank you for your quick answer...
I'm sorry you decided not to develop and mantain this project anymore, anyway, I've been able to reach the landing page at :3000 port, but from there the registration is not working.
I /link the TG group and I get the token, but from there nothing else...
Let me attach the servers status screenshots.
1
2
Thanks a lot again!

@billy4479
Copy link
Owner

The only thing i notice is that in the token there are some \. Try manually removing those.

The temporary token it's just a JWT, you should also be able to inspect it if you'd like, but it should never contain backslashes.

The ones you see in the server logs are there because of the formatting that's being used in telegram messages. If you copy the token as the bot sent it to you you should be able to register (the bot did reply to your "/link" command right? it should be in your private chat with the bot, not the group chat).

This is quite an old project of mine and there's definitely a lot to improve. I am graduating high school right now and I'm in the middle of the exams so I don't have much time to code at all, maybe next year in college I'll try to take the project forward, who knows :P

@benjiworld
Copy link
Author

Yes, already noticed the slashes around, but I've used the token from the bot.. That was not the problem unfortunately.. So, focus your attention on the exams, and don't pay attention to other stuffs, I'll try to dig around in the while.. thank you for your help, wish you the best...

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

2 participants