I am using Ubuntu 16 and I have website built in PHP using Laravel 5.4, I want to setup Rocket.chat on this website. Following things I have done.
- installed rocketchat server using snap install rocketchat-server
- It is successfully working on http://127.0.0.1:3000
- Then I have taken http://127.0.0.1:3000 in HTML iframe tag to display rocket chat on my website.
As per documentation of Rocket chat, I have tried to login in rocket chat but did not get exactly what I have to do.
<script>
Meteor.loginWithPassword('username-or-email', 'your-password');
</script>
But I got error
ReferenceError: Meteor is not defined
Following things, I am trying to do but not getting any way.
- When user register in my website then register in rocket chat as well.
- When user login in my website then login in rocket chat as well.
- Do I need to use its Rest API, if yes then how graphically it will appear in my website?
I think, my approach of doing it is not right so any suggestions? As per my requirements what should be the correct way to implement it?