AvoRed Rust CMS implement with the help of axum web framework and diesel orm.
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
- Users
- Roles/Permissions
- Components
- Pages
- Collection
- SEO
- Asset Manager
- Rest API
- GraphQL API
- Content Workflow
- Web Framework (Axum)
- DB (Postgres SQL)
- DB ORM (Sea Orm CLI)
- VIEW (Handlebars)
- Form Validation (Validator)
- Display Form Validation Error
- Todo Flash messages
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" ~}}