3 Star 6 Fork 6

dy.huang / article-service

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

article-service

码云

后端springcloud

前端react

GitHub:

前端react

后端springcloud

项目介绍

前端使用了react,后端使用springcloud, oauth2做统一认证,springboot2.0,图片上传使用腾讯COS

项目比较简单,也有不少坑,仅做学习参考

eureka zuul oauth2 storage

基于这个项目我做了一个使用vue 实现的个人小网站,样式基本类似,暂时未做开源

软件架构

springcloud

使用说明

先配置好自己的数据库信息

1、依次启动 eureka-service zuul-service 路由网关 oauth2-service 认证模块 storage-service 文章模块

这两个模块测试使用,可以不用 elasticsearch-service feign-service

2、导入登录账号导入数据,或者运行oauth2-service 中的Oauth2ServiceApplicationTests,导入登录账号和密码

INSERT INTO react_article.user_info(id, create_date, lastmodified_time, password, type, username) VALUES (1, '2019-06-01 17:37:22', '2019-06-01 17:37:22', '{bcrypt}$2a$10$B2XUurHGK7TBnuGB8NMIqOiPI33o4lqhRkbJQDQUt8OWkcYxcip4G', NULL, 'user');

3、获取token 图片 图片

4、表article_tags,导入基础数据 INSERT INTO react_article.article_tags(id, code, tags_name) VALUES (1, '1', 'react'); INSERT INTO react_article.article_tags(id, code, tags_name) VALUES (2, '2', 'spring');

5、图片上传 请自行申请腾讯云 https://cloud.tencent.com/redirect.php?redirect=1042&cps_key=67213a01a6b22c5f17736dd6857e2581&from=console

部署:

java -jar xxx.jar --spring.profiles.active=dev >/log/app.log &

nohup java -jar eureka-service-0.0.1-SNAPSHOT.jar --spring.profiles.active=dev >log/eureka.log &
# nohup java -jar eureka-service-0.0.1-SNAPSHOT.jar --spring.profile.active=dev >log/eureka.log &


nohup java -jar oauth2-service-0.0.1-SNAPSHOT.jar --spring.profiles.active=dev >log/oauth2.log &
nohup java -jar storage-service-0.0.1-SNAPSHOT.jar --spring.profiles.active=dev >log/storage.log &
nohup java -jar zuul-service-0.0.1-SNAPSHOT.jar --spring.profiles.active=dev >log/zuul.log &


nohup java -jar eureka-service-0.0.1-SNAPSHOT.jar --spring.proflies.active=dev >log/eureka.log &
nohup java -jar oauth2-service-0.0.1-SNAPSHOT.jar --spring.proflies.active=dev >log/oauth2.log &
nohup java -jar storage-service-0.0.1-SNAPSHOT.jar --spring.proflies.active=dev >log/storage.log &
nohup java -jar zuul-service-0.0.1-SNAPSHOT.jar --spring.proflies.active=dev >log/zuul.log &



windows 乱码问题 要加上-Dfile.encoding=UTF-8
Java -Dfile.encoding=UTF-8  -jar xxx.jar --spring.profiles.active=dev >/log/app.log &

Comments ( 0 )

Sign in for post a comment

About

Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Java
1
https://gitee.com/dy.huang/article-service.git
git@gitee.com:dy.huang/article-service.git
dy.huang
article-service
article-service
master

Search