本工程基于node+express+mysql+element-ui,搭建了一个博客,可注册登录
-
git clone 到本地
-
cd到node-blog文件夹
-
npm install
-
npm run dev
npm run server
create table user_info (userId INT AUTO_INCREMENT, userName char(100) not null, userPassword char(100) not null,createDate char(100), primary key(userId));
userId: 用户id,关键字
userName: 用户名
userPassword: 密码
createDate: 创建时间
create table blog_list (blogId INT AUTO_INCREMENT, blogTitle char(100) not null, blogContent text, createDate char(100), userId char(100), primary key(blogId));
blogId: blog Id
blogTitle: 博客标题
blogContent: 博客内容
createDate: 博客创建时间
userId: 用户Id