Graduation Project: Design a blog background system based on MongoDB
基于 MongoDB 的个人博客后台系统设计
-
下载源代码
go get github.com/JonSnow47/Graduation-Project
-
编译
go build ./blog
如果命令窗显示
2018/05/19 20:14:09.299 [I] [asm_amd64.s:2361] http server Running on http://:8080
就表示后台系统启动成功了,你可以通过访问 localhost:8080 来访问后台 API
```
/admin/new Method: Post
/admin/login Method: Post
/admin/logout Method: Get
/blog/article/new Method: Post
/blog/article/delete Method: Post
/blog/article/update Method: Post
/blog/article/modifystate Method: Post
/blog/article/get Method: Get
/blog/article/all Method: Post
/blog/article/approved Method: Get
/blog/article/created Method: Post
/blog/tag/new Method: Post
/blog/tag/delete Method: Post
/blog/tag/enable Method: Post
/blog/tag/get Method: Get
/blog/tag/all Method: Post
```