Code Monkey home page Code Monkey logo

realtime-private-chat-nodejs-socketio-vuejs-laravel's People

Contributors

sagarankoliya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

realtime-private-chat-nodejs-socketio-vuejs-laravel's Issues

Please remove "{{ env('WS_URL') }}" from layout file.

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.

SSL

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?

No configurations found in configuration

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

Need help

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

Run the App on Server and Configuration

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.

Nodejs Cpanel Hosting

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.

Wrong way to put auth::id() in the meta tag

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.

Security issue

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 ?

Chat Server start

Do I have to manually run the code to run the chat server everytime. If yes, how to automate it? Thanks

Need help regarding vue.js part in blade file

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?

Change Node js queries

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?

Error: Configuration property "dbConfig.host" is not defined

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.