-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,13 @@ | |
name = "rwf-admin" | ||
version = "0.1.10" | ||
edition = "2021" | ||
description = "Admin panel for applications written with the Rust Web Framework" | ||
homepage = "https://levkk.github.io/rwf/" | ||
repository = "https://github.com/levkk/rwf" | ||
keywords = ["mvc", "web", "framework", "http", "orm", "admin"] | ||
authors = ["Lev Kokotov <[email protected]>"] | ||
include = ["/templates", "/src"] | ||
|
||
readme = "README.md" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Rwf admin | ||
|
||
[![Documentation](https://img.shields.io/badge/documentation-blue?style=flat)](https://levkk.github.io/rwf/) | ||
[![Latest crate](https://img.shields.io/crates/v/rwf-admin.svg)](https://crates.io/crates/rwf-admin) | ||
[![Reference docs](https://img.shields.io/docsrs/rwf-admin)](https://docs.rs/rwf/latest/rwf-admin/) | ||
|
||
[Rwf](https://crates.io/crates/rwf) admin panel is a web application that provides a real time overview into web activity, background jobs queue insights, and allows to manipulate database models. | ||
|
||
The admin panel can run as a standalone application or be integrated into an existing Rwf application. | ||
|
||
## Installation | ||
|
||
To install Rwf admin panel into your application, you need to add it to your routes and preload its templates at application startup: | ||
|
||
```rust | ||
use rwf::prelude::*; | ||
use rwf::http::{Server, Error}; | ||
|
||
#[tokio::main] | ||
async fn main() -> Result<(), Error> { | ||
rwf_admin::install()?; | ||
|
||
let mut routes = vec![]; | ||
// Add your routes... | ||
|
||
routes.extend(rwf_admin::routes()); | ||
|
||
Server::new(routes) | ||
.launch("0.0.0.0:8000") | ||
.await | ||
} | ||
``` | ||
|
||
The admin panel is now running on [https://localhost:8000/admin/](https://localhost:8000/admin/). |