A simple multiplayer chat room. Based on vue and node+Socket.IO. More features are being opened...
Download the project
git clone https://github.com/lss5270/chatroom-vue.git
Enter the chatroom-vue directory to install the dependency package
npm install
Start the server service (called this terminal is an S terminal, you must start the backend service first, otherwise the front-end page cannot successfully connect to the Socket). After executing the following command, the terminal will prompt 'app listen at: 8081'
npm run server
Start a new window (note: start a new window!), start the front-end development service (called this terminal is a B terminal), execute the following command in the chatroom-vue directory. After successful execution, enter the access address in the browser http://localhost:8080
npm run dev
If the server needs process guardianship, replace the startup command from npm run server with the following command. (Make sure that pm2 is installed globally: npm install pm2 -g)
npm run pm2