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
cp .env .env.dev    //Basically copy the .env.example file to .env

Set up your .env.dev file you can rename the existing .env.prod file make sure the database folder name, password salt, jwt secret setup properly random string and smtp information setup right if you wanted to use the forgot password feature(optional) NOTE: for local dev smtp info can be ignored.

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
cp .env.example .env    //Basically copy the .env.example file to .env
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
  • Fields
  • Asset Manager

RoadMap

  • Rest API
  • GraphQL API
  • Content Workflow
Setting 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 helper method in handlebar template

{{ helper_method_name "argument" ~}}

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

Introduction

Avored headless CMS enables efficient content management for websites, mobile apps, and various digital platforms. By decoupling the content from the presentation layer, it gives developers the flexibility to build frontends using their preferred technologies. With an avored headless CMS, content is centralized, making it easy to create, manage, and seamlessly deliver it to multiple applications.

Discover more about Headless CMS concepts.

Features
  • Comprehensive Asset Management: Organize and manage images, media, files, and other assets with ease.
  • User-Friendly Content Management: Simplify page content management for both technical and non-technical users.
  • Seamless Content Distribution: Deliver your content anywhere instantly using REST APIs.