# chat-room-demo **Repository Path**: alex_john/chat-room-demo ## Basic Information - **Project Name**: chat-room-demo - **Description**: 通过Vue和MySQL数据库实现简单的聊天室 - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-09-29 - **Last Updated**: 2023-09-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 1. Overview - The project are based on Vue, TailwindCSS and Node.js - The Database of the current project is MySQL, please initialize the database before start(DDL in backend/schema.sql) - Architecture ![server.png](https://s2.loli.net/2023/09/29/d1My93hSjrOfYzg.png) # 2. Start - Enter backend and install the dependencies ```shell cd ./backend npm install # or other pnpm install yarn install ``` - Deploy the backend RESTAPI via pm2 ```shell npm i pm2 -g pm2 start ./backend/server.js ``` - Monitor the backend log ```shell pm2 monit ``` - Deploy the frontend page via docker(please install docker before this step) ```shell docker pull nginx docker run -d -p 80:80 -v /page/:/usr/share/nginx/html --name nginx-docker nginx:latest ```