chatting 后端仓库。前端请前往chatting-vue。
-- mysql -u root -p
CREATE DATABASE chatting;
CREATE USER 'webchatting'@'localhost' IDENTIFIED BY 'webchatting';
GRANT ALL PRIVILEGES ON chatting.* TO 'webchatting'@'localhost';
quit
2. 根据主机环境修改配置文件
主要是数据库 URL 和账号密码:
datasource:
url: jdbc:mysql://localhost:3306/chatting?serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true
username: webchatting
password: webchatting
-
On Local Host:
# build mvn package # run application mvn spring-boot:run
-
Use Docker:
# manually docker build -t webchatting/chatting . docker run -d -p 8088:8088 -p 3333:3333 webchatting/chatting # or use make make run
see query.sql.
- refactor backend with SpringBoot
- design and use db
- use Mybatis
- use Druid
- use @Slf4j replace logger field
- refactor frontend, see chatting-vue
- use Logback replace slf4j
- use Redis
- automatically delete files when they expire
- deploy with docker