4 Star 18 Fork 4

XingFly / SNS2

Create your Gitee Account
Explore and code with more than 5 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

SNS

  1. 请安装并运行rabbitMQ(相关配置在application.properties中)
  2. 请安装并运行Redis(相关配置在application.properties中)
  3. 相关api请访问/swagger-ui.html

使用

  1. 上面依赖软件安装和运行完毕后执行FeedApplication即可 Init中的数据会被初始化(项目关闭后数据会消失)
  2. 图片上传需要修改QiNiu中的 AK和SK

初始化管理员: username:fpf password:fpf

初始化用户: username:wl password:wl

username:wd password:wd

api使用流程

  1. 在swagger-ui.html 中 Post 请求 /api/tokens 点击对应格式的json字符串输入账号密码

  2. 在/api/me进行用户相关的操作需要在操作时添加token信息(用户id_用户Token)注意用下划线拼接(不要有空格)

  3. 20170719150043953616365.png

  4. 20170719150043958374512.png

  5. 20170719150043961539214.png

Comments ( 6 )

Sign in for post a comment

About

精简版SNS(Restful API),提供了Swagger文档是一个后端API集合。使用了Spring Data JPA。 spread retract
Java
Cancel

Releases

No release

Gitee Metrics

Contributors

All

Activities

load more
can not load any more
Java
1
https://gitee.com/xingfly/sns2.git
git@gitee.com:xingfly/sns2.git
xingfly
sns2
SNS2
master

Search