Giter Club home page Giter Club logo

rust_cms's Introduction

Rust CMS

Demo run on Ali Cloud

⚠Don't use it in production!!!. It is a project for learning.

English|中文

Features

  • Login & Logout

  • File Upload  

  • Articles list

  • Got new Articles

  • Got Recommend Articles

  • Publish Article Page 

  • Article Details Page

  • actix-web demo

  • diesel demo

  • Support Session

  • Login auth base on Session

  • Tera Demo includes custom define Functions

  • Support Markdown in write Article

  • My article page

  • Support under review 
    enable this feature by config tl.app.approval.enable=true and set who can approve through this configuration item tl.app.approval.users=usernameA,usernameB...

  • Support graphql


How to run

git clone [email protected]:TianLangStudio/rust_cms.git     
cd rust_cms

If you have installed Rust and Docker, just execute the script below.

./bin/start.sh

This command will run script to initial a MySQL database using docker and then run rust_cms using Cargo run

You could use a exists MySql database, installing Rust is required

  • import doc/rust_cms.sql to your Mysql, this will create a database named rust_cms.
  • edit conf/application_dev.yaml to change the database link information.
  • now you can execute command cargo run to run rust_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

Contact FusionZhu for more help

rust_cms's People

Contributors

dependabot[bot] avatar tianlangstudio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rust_cms's Issues

Requested application data is not configured correctly

It show:

Requested application data is not configured correctly. View/enable debug logs for more details.

while request 127.0.0.1:8088 use the browser

Enable the debug log in conf/log4rs.yaml, we can see:

2022-08-07T11:47:08.480307622+08:00 DEBUG actix_web::data - Failed to extract Data<tera::tera::Tera> for index handler. For the Data extractor to work correctly, wrap the data with Data::new() and pass it to App::app_data(). Ensure that types align in both the set and retrieve calls.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.