sagarankoliya / realtime-private-chat-nodejs-socketio-vuejs-laravel Goto Github PK
View Code? Open in Web Editor NEWRealtime Private Chat NodeJS SocketIO Vue JS Laravel
Realtime Private Chat NodeJS SocketIO Vue JS Laravel
Error: Cannot find module 'nice-try'
at Function.Module._resolveFilename (module.js:547:15)
I was struggling to get this code working.
And after struggling with this code for half day. I saw that the:-
<meta name="ws_url" content="{{ env('WS_URL') }}">
The content of above meta tag was coming empty. This is because you can't access env variables directly. Now you have to first declare variables in config file and then you have to access them from config file.
So, please update code. I don't want anyone to get this kind of silly problem ๐ .
Otherwise the code is working perfectly fine.
Hello
I want to use this project on ssl server. i need to run index,js through ssl. please help me to do that
can I add cert and key file to index.js?
I have configure
{
"dbConfig": {
"host": "localhost",
"port": 3306,
"user": "root",
"password": "mysql",
"database": "chat"
}
}
but show errors
[nodemon] starting `node ./index.js`
WARNING: No configurations found in configuration directory:C:\Users\Mostafa Kamal\realtime-private-chat-nodejs-socketio-vuejs-laravel\public\nodejs\config
WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.
C:\Users\Mostafa Kamal\realtime-private-chat-nodejs-socketio-vuejs-laravel\public\nodejs\node_modules\config\lib\config.js:203
throw new Error('Configuration property "' + property + '" is not defined');
^
Error: Configuration property "dbConfig.host" is not defined
at Config.get (C:\Users\Mostafa Kamal\realtime-private-chat-nodejs-socketio-vuejs-laravel\public\nodejs\node_modules\config\lib\config.js:203:11)
at new Db (C:\Users\Mostafa Kamal\realtime-private-chat-nodejs-socketio-vuejs-laravel\public\nodejs\utils\db.js:10:17)
at Object.<anonymous> (C:\Users\Mostafa Kamal\realtime-private-chat-nodejs-socketio-vuejs-laravel\public\nodejs\utils\db.js:36:18)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
[nodemon] app crashed - waiting for file changes before starting...
this still try in my local computer, i want test access from other computer .. I run in my local computer this php artisan serve --host=192.168.20.xxx ..
when I access it on another computer a notification appears on the socket Could not connect to server
want to connect this with objective c get connect with socket - get the chat list but not apple to get messages from other users .
Hi thanks for your code which i needed for longtime but i need your help.How can i use this code in my existing project as i cannot directly do composer install it will erase all the code of my project can to tell me the specific files which to include for chat to get started and how to show only the specific user in online section.
Thanks in advance and once again thank you for your code
How i disable export NODE_ENV=dev ?
If one sees the message of others then it is not good ? how is it authenticated ??
Thank you for great chat application, I ran it On local host by laragon.
But i tried to ran on VPS server and couldn't. please give us a step by step to use this great application.
Hai, great work by the way.
But the file sharing feature is not working?
Hi,
First of all, a great project.
I was easily able to implement it locally in my project. I have bought a2zhosting of nodejs. When I try to implement it online it has error of time out.
Access to XMLHttpRequest at 'https://chat.merooffer.com/socket.io/?id=%2028&EIO=3&transport=polling&t=NVp6P41' from origin 'https://merooffer.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Hi,
Can you please make a vlog or video that how did you implemented this. Since i do have some custom requirements and this would really help me to get the flow of this chat application.
Thanks
Malicious users can change the content of the meta tag user_id to send message from any other users.
So you may change the way user_id and it should be inside server not from client.
What about db info, any one can get it if he click "website-domain/nodejs/config/dev.json"
in the browser.
What is your opinion ?
I want to deploy this app in Godaddy hosting with Apache and PHP, how can I do this?
Do I have to manually run the code to run the chat server everytime. If yes, how to automate it? Thanks
Is there a way we to implement a group chat between 4 people for example?
I am uploading it on my server and this is giving me an error below
Hi, First of all I like your approach towards building this Realtime chat application. I need some guidance as I have implemented this in my Laravel application with my own custom chat template. I want to know that when a blade view is loaded with Vue.js variables or objects in it than the page first loads at client-side so it renders Vue.js variables for example like this "{{ chatList.name }}" until the Websocket running on Node.js server is executed and pulled data through query. It shows is just for few milliseconds or 1 sec but can I hide it or hide whole component until data is fetched from server and assigned to Vue.js variables?
I want to add Emoji in chat module can you please help me for the same.
Hi, i need some help.
i want to change the node js queries in helper,js file to ajax request and call the laravel routes. How can i do that?
I have an error as follows
$ export NODE_ENV=dev
$ sudo npm start
WARNING: No configurations found in configuration directory:/var/www/chatvue.local/nodejs/config
WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.
/var/www/chatvue.local/nodejs/node_modules/config/lib/config.js:202
throw new Error('Configuration property "' + property + '" is not defined');
^
Error: Configuration property "dbConfig.host" is not defined
at Config.get (/var/www/chatvue.local/nodejs/node_modules/config/lib/config.js:202:11)
at new Db (/var/www/chatvue.local/nodejs/utils/db.js:10:17)
at Object. (/var/www/chatvue.local/nodejs/utils/db.js:36:18)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
[nodemon] app crashed - waiting for file changes before starting...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.