An open API service indexing awesome lists of open source software.

https://github.com/ztgx/hoopics-admin-restful-api-server

hoopics website admin restful api server
https://github.com/ztgx/hoopics-admin-restful-api-server

hoopics restful restful-api rust web

Last synced: 9 months ago
JSON representation

hoopics website admin restful api server

Awesome Lists containing this project

README

          

# hoopics admin restful api server
前段时间使用ReactJs + Eggjs写了一个图片分享的网站 ~~hoopics~~, 顺带实现了一个后台管理系统.
去年开始使用Rust写项目, 于是想着继续使用Rust语言, 在web端的一个技术尝试.
hoopics-admin-restful-api的主要功能:
* 数据统计
* 图片审核
* 用户管理
* 首页推荐
---
* 相关框架: actix-web + Diesel ORM + JWT + Mariadb.
* 代码结构: 学习eggjs, 即router -> controller -> service -> model的结构.

---
.env 文件内容
```
HOOPICS_DATABASE_URL=主网站数据库地址
HOOPICS_ADMIN_DATABASE_URL=admin数据库地址
HOOPICS_STATISTICS_DATABASE_URL=统计数据库地址

APP_HOST=服务器IP
APP_PORT=端口
HOOPICS_API_ROOT=http://IP:PORT/api/v2
```