-
安装必备工具
JDK,Maven -
克隆代码到本地
-
运行命令创建数据库脚本
-- ----------------------------
-- Table structure for `comment`
-- ----------------------------
DROP TABLE IF EXISTS `comment`;
CREATE TABLE `comment` (
`comment_id` int(11) NOT NULL AUTO_INCREMENT,
`user_id` varchar(255) DEFAULT NULL,
`question_id` int(11) DEFAULT NULL,
`comment_info` varchar(1024) DEFAULT NULL,
PRIMARY KEY (`comment_id`)
) ENGINE=InnoDB AUTO_INCREMENT=42 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `github_user`
-- ----------------------------
DROP TABLE IF EXISTS `github_user`;
CREATE TABLE `github_user` (
`user_name` varchar(50) DEFAULT NULL,
`id` varchar(50) NOT NULL,
`url` varchar(50) DEFAULT NULL,
`token` varchar(50) DEFAULT NULL,
`avatar_url` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for `question`
-- ----------------------------
DROP TABLE IF EXISTS `question`;
CREATE TABLE `question` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(50) DEFAULT NULL,
`description` text,
`comment_count` int(11) DEFAULT '0',
`view_count` int(11) DEFAULT '0',
`awesome_count` int(11) DEFAULT '0',
`tag` varchar(256) DEFAULT NULL,
`user_id` varchar(20) DEFAULT NULL,
`last_push_time` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=43 DEFAULT CHARSET=utf8;
- 运行打包命令
mvn package
- 运行项目
java -jar target/community-0.0.1-SNAPSHOT.jar
- 访问项目
http://localhost:8877
Spring 文档
Spring Web
es
Github deploy key
Bootstrap
Github OAuth
Spring
菜鸟教程
Thymeleaf
Spring Dev Tool
Spring MVC
Markdown 插件
UFfile SDK
Count(*) VS Count(1)
Git
Visual Paradigm
Flyway
Lombok
ctotree
Table of content sidebar
One Tab
Live Reload
Postman