Añade nuevo proyecto para el sitio web de PageTop
This commit is contained in:
parent
57fd4c2054
commit
686ec924d1
14 changed files with 57 additions and 20 deletions
20
website/Cargo.toml
Normal file
20
website/Cargo.toml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[package]
|
||||
name = "pagetop-website"
|
||||
version = "0.0.1"
|
||||
edition = "2021"
|
||||
|
||||
authors = [
|
||||
"Manuel Cillero <manuel@cillero.es>"
|
||||
]
|
||||
description = """\
|
||||
PageTop and Drust website.\
|
||||
"""
|
||||
homepage = "https://pagetop.cillero.es"
|
||||
repository = "https://gitlab.com/manuelcillero/pagetop/website"
|
||||
license = "Apache-2.0 or MIT"
|
||||
|
||||
[dependencies.pagetop]
|
||||
path = "../pagetop"
|
||||
|
||||
[dependencies]
|
||||
actix-web = "4.1.0"
|
||||
9
website/config/default.toml
Normal file
9
website/config/default.toml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[app]
|
||||
name = "PageTop WebSite"
|
||||
description = """\
|
||||
The definitive PageTop Guide for PageTop Users.\
|
||||
"""
|
||||
language = "es-ES"
|
||||
|
||||
[log]
|
||||
rolling = "Daily"
|
||||
11
website/src/main.rs
Normal file
11
website/src/main.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use pagetop::prelude::*;
|
||||
|
||||
struct PageTopWebSite;
|
||||
|
||||
impl AppTrait for PageTopWebSite {
|
||||
}
|
||||
|
||||
#[actix_web::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
Application::prepare(PageTopWebSite).await?.run()?.await
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue