/avored-rust-cms

AvoRed rust cms

Primary LanguageRustMIT LicenseMIT

Avored Rust CMS

AvoRed Rust CMS implement with the help of axum web framework and diesel orm.

AvoRedCMS

Installation

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

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

// Install Sea ORM  CLI
cargo install sea-orm-cli

sea-orm-cli migrate up

// Now we will execute the cargo run

cargo run

Features

  • 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

Generate Sea Orm Cli Entity

sea-orm-cli generate entity -o entity/src

Generate Sea Orm Migration Fresh

 sea-orm-cli migrate fresh

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" ~}}