/rust_cms

使用Rust编写一个CMS(内容管理系统)可以做为个人博客,公司网站

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Rust CMS

功能

  • 登录登出
  • 文件上传
  • 文章列表
  • 最新更新文章列表获取
  • 推荐文章列表获取
  • 文章发布
  • 文章详情
  • actix-web 样例
  • diesel 样例
  • session
  • 基于session的登录验证
  • Tera模板/自定义函数等
  • 支持Markdown
  • 我的文章页面
  • 支持审核发布状态
  • 支持graphql

运行

请先安装Rust

git clone git@github.com:TianLangStudio/rust_cms.git
cd rust_cms

  • 创建Mysql数据库 导入doc/rust_cms.sql
  • 修改conf/application_dev.yaml文件中的数据库链接配置

cargo run


使用Rust编写的内容管理系统(CMS)

在项目rust_login的基础上增加CMS功能 开发中 进度可关注博客


build error

  1. throw an error when building third part lib Maybe it is because of the version conflict, you can remove the file named Cargo.lock then build again

  2. cannot find -lmysqlclient

    error: linking with cc failed: exit status: 1
    ....
    /usr/bin/ld: cannot find -lmysqlclient

    install mysqlclient then build again ex. install mysqlclient in Ubuntu

    sudo apt-get install libmysqlclient-dev