Skip to content

avored/avored-rust-cms

Repository files navigation

Avored rust content management system

AvoRed Rust CMS implement with the help of axum web framework and surrealdb as database.

AvoRedCMS

Join community via slack

Join community via Slack

Demo admin

Please visit Demo AvoRed Rust CMS Admin

Installation

git clone https://github.com/avored/avored-rust-cms.git
cd avored-cms

Set up your .env file you can rename the existing .env.example file make sure the database username and password setup correctly.

Start your application backend

cargo run

Once the application start you can visit http://localhost:3000/setup this url will create database tables and admin user once you submit it and redirect to login screen but ignore this page as we got react admin setup in progress.

Start react application admin

cd react-admin
npm i
npm start

Visit localhost:3000/admin to access the react admin for the portal. Right now react admin does not have many pages redone yet but work in progress.

Features

  • Admin Users
  • Roles/Permissions
  • Components
  • Pages
  • Collection
  • SEO
  • Asset Manager

RoadMap

  • Rest API
  • GraphQL API
  • Content Workflow
Seting up full Stack project in RUST

Dev help

How to do a loop inside the handlebar template

{{#each validation_message as |message|}}
    {{ message.mssage }}
{{/each}}

How to render a variable in handlebar template

{{ variable_name }}

How to call heloper method in handlebar template

{{ helper_method_name "argument" ~}}

How to start a surrealdb surreal start --user root --pass root --bind 0.0.0.0:8000 file://test.db