/adminlte-rust

Easy AdminLTE integration with Rust and tide-rs framework

Primary LanguageJavaScript

AdminLTE - Rust

Easy AdminLTE integration with Rust and tide-rs web framework

Setup Project

download AdminLTE v3 and copy the necessary files to public folder

cargo build to install dependencies

cargo run to run server

Launch browser on http://127.0.0.1:1987

AdminLTE html

Structure

Structure App

public store public assets: css, javascript, etc

public/admin-lte theme of admin-lte. More information AdminLTE v3

src/models define entities or models that use

src/routes where to manage routing

templates define the html pages. This project uses askama-rs as an engine for rendering templates

Note

Url of href and src should add "/public/xyz" on *.html template, for example, do like this:

<link rel="stylesheet" href="/public/admin-lte/plugins/fontawesome-free/css/all.min.css">

<link rel="stylesheet" href="/public/admin-lte/dist/css/adminlte.min.css">

<script src="/public/admin-lte/dist/js/adminlte.min.js"></script>