Real-time chat application built with Node.js, VueJS & Socket.io.
This application uses Socket.io to send messages in real-time. VueJS is used to bind data to the DOM and to easily manipulate the data.
I use some ES6 syntax so please use Node 8, or change the syntax.
- Clone the repository
- CD in to the directory that was cloned
- Install dependencies
npm i
- Build your application
npm run build
- Start the application
npm run dev
ornpm start
(depending if you havenodemon
installed)
Command | Description | Example/More Information |
---|---|---|
export VUEJS_CHAT_DATABASE_URL='' |
The URL of your MongoDB instance. | mongodb://localhost:27017/chat |
export database_messages_collection='' |
The name of the collection you want to save and read messages from. | messages |
Aaron Welsh
http://aaron-welsh.co.uk