Skip to content

brewpipeline/blog-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blog-ui

Blog UI made with Yew/WASM/Bootstrap

Features

  • Posts system (page/list/create/edit/delete/publish)
  • Authors system (page/list/create/edit)
  • Tags system (page/create)
  • Comments system (list/create/delete)
  • Minimal administration system (roles/bans/control)
  • Authorization (telegram/yandex/internal)
  • Server-Side Rendering (SSR) (posts/post/authors/author/tag)
  • SEO optimized (search/social)
  • Search (posts/authors)
  • Telegram notifications (post publish)
  • Images mirroring
  • Deploy

How-to

  1. Configure ENV vars mentioned in job or in lib file, where some items can be optional, based on selected features
#[cfg(all(feature = "client", feature = "yandex"))]
const YANDEX_CLIENT_ID: &'static str = std::env!("YANDEX_CLIENT_ID"); // ee156ec6ee994a748e724f604db8e305
#[cfg(feature = "client")]
const API_URL: &'static str = std::env!("API_URL"); // http://127.0.0.1:3000/api
#[cfg(feature = "telegram")]
const TELEGRAM_BOT_LOGIN: &'static str = std::env!("TELEGRAM_BOT_LOGIN"); // AnyBlogBot
const TITLE: &'static str = std::env!("TITLE"); // BLOG
const DESCRIPTION: &'static str = std::env!("DESCRIPTION"); // BLOG DESCRIPTION
const KEYWORDS: &'static str = std::env!("KEYWORDS"); // BLOG, KEYWORDS
const ACCORDION_JSON: &'static str = std::env!("ACCORDION_JSON"); // [{"title":"О блоге","body":"<strong>Ты ошибка эволюции.</strong><br/>А блог этот про хороших людей в плохое время."},{"title":"Контент","body":"Привет!"}]
  1. Build YEW/app by tutorial

Links

Images

1

2

3

4

5

6