MiniWeb Template
Go to file
2024-05-11 13:31:15 +02:00
docker code: entity, migration, quick migration 2023-12-21 21:07:59 +01:00
docs docs: show admin in README 2024-01-15 23:13:43 +01:00
entity code: database list, get, create, and fixed migration 2024-02-16 21:40:27 +01:00
migration code: database list, get, create, and fixed migration 2024-02-16 21:40:27 +01:00
rear refactor: more lean main 2024-02-28 16:10:41 +01:00
src code: starting with file repository 2024-05-11 13:31:15 +02:00
static code: rudimentary implementation of detail and create 2024-01-27 17:42:20 +01:00
strinto code: strinto 2024-01-26 11:27:05 +01:00
templates code: list+create improvements, expanded notes, added logging 2024-02-07 13:37:35 +01:00
.env.sample feature: extracting admin and services to 2024-02-28 14:01:09 +01:00
.gitignore ignoring .env 2023-10-09 00:54:36 +02:00
Cargo.lock refactor: more lean main 2024-02-28 16:10:41 +01:00
Cargo.toml refactor: more lean main 2024-02-28 16:10:41 +01:00
Justfile code: database list, get, create, and fixed migration 2024-02-16 21:40:27 +01:00
NOTES.md refactor: removed unused dependencies 2024-02-28 14:40:59 +01:00
README.md docs: show admin in README 2024-01-15 23:13:43 +01:00
TODOS.md code: database list, get, create, and fixed migration 2024-02-16 21:40:27 +01:00

MiniWeb

Abstract

This is a biased little project, that tries to establish a basic infrastructure to build a webservice.

The main objective is to build a basic template one can quickly start developing a service with

The project aims to implement approaches as simple straight-forward over generalized multi-purpose.

It assumes that you clone the code, and adjust it from there, without keeping up to date. So this is not thought of being a framework.

Choices

Philosophies

  • Semantic over Mnemonic
  • As flat HTML as possible

On the Backend

  • axum as webserver framework
  • minijinja as template renderer
  • sea-orm as database framework

On the Frontend

  • markdown.css to provide out of the box CSS for markdown
  • hyperscript for light weight event scripting
  • htmx for service interaction
  • Fomantic-UI as default CSS framework (once Semantic)

Features

The aims of the project for now are:

  • Template Rendering with Hot-Reload
  • Static-File Serving
  • Logging
  • 404 Handler
  • 500 Handler
  • Media File Serving
  • Admin Site with Registry
  • Storage based tools (for files and cloud)
  • Database
  • Redis / KV Store

Future Ideas:

  • Direct Markdown Sites as wikiserve with the storage tools
  • static-image and media-image Service for automatic thumbnails
  • User and Role Implementation
  • Event-Bus link to RabbitMQ

Windows 10

Env if using MINGW64;

export PATH=$PATH:"/c/Program Files/PostgreSQL/12/bin"
export PQ_LIB_DIR="C:\Program Files\PostgreSQL\12\lib"

Install a postgres: choco install postgresql12 --force --params '/Password:root'

Mugshot

Mugshot of Admin