avored-rust-cms
avored-rust-cms copied to clipboard
Avored rust content management system
Avored rust content management system
AvoRed Rust CMS implement with the help of axum web framework and surrealdb as database.
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
- [x] Admin Users
- [x] Roles/Permissions
- [x] Components
- [x] Pages
- [ ] Collection
- [ ] SEO
- [x] Asset Manager
RoadMap
- [ ] Rest API
- [ ] GraphQL API
- [ ] Content Workflow
Seting up full Stack project in RUST
- [x] Web Framework (Axum)
- [x] SurrealDB (Surreal DB)
- [x] VIEW (Handlebars)
- [x] Form Validation (Validator)
- [x] Display Form Validation Error
- [x] Flash messages
- [ ] Form validation middleware
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