MiniWeb Template
Go to file
2024-01-15 21:55:28 +01:00
docker code: entity, migration, quick migration 2023-12-21 21:07:59 +01:00
entity create and list user examples 2023-12-21 21:07:59 +01:00
migration code: entity, migration, quick migration 2023-12-21 21:07:59 +01:00
src refactor: moving to my own template, using fomantic instead of uikit. removing uikit, and some other removed stuff 2024-01-15 21:55:28 +01:00
static refactor: moving to my own template, using fomantic instead of uikit. removing uikit, and some other removed stuff 2024-01-15 21:55:28 +01:00
templates refactor: moving to my own template, using fomantic instead of uikit. removing uikit, and some other removed stuff 2024-01-15 21:55:28 +01:00
.env.sample starting to install diesel 2023-10-08 02:07:39 +02:00
.gitignore ignoring .env 2023-10-09 00:54:36 +02:00
Cargo.lock code: added register function. need to refactor naming conventions 2024-01-02 15:19:39 +01:00
Cargo.toml code: added register function. need to refactor naming conventions 2024-01-02 15:19:39 +01:00
Justfile code: updating justfile with watch command, adding logging functionality, control+c detection, host/port loading from env, and a file listing example for an alternative source besides databases 2023-12-30 17:59:04 +01:00
NOTES.md refactor: moving to my own template, using fomantic instead of uikit. removing uikit, and some other removed stuff 2024-01-15 21:55:28 +01:00
README.md docs: cleanup 2023-12-29 22:00:28 +01:00
TODOS.md refactor: moving to my own template, using fomantic instead of uikit. removing uikit, and some other removed stuff 2024-01-15 21:55:28 +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

On the Backend

  • axum as webserver framework
  • minijinja as template renderer
  • sea-orm as database framework
  • rust_embed to embed vital static files

On the Frontend

  • markdown.css to provide out of the box CSS for markdown
  • hyperscript for light weight event scripting
  • htmx for service interaction
  • GUIKit for a default CSS framework

Features

The aims of the project for now are:

  • Template Rendering with Hot-Reload
  • Static-File Serving
  • 404 Handler
  • 500 Handler
  • Media File Serving

Future Ideas:

  • Direct Markdown Sites with wikiserve
  • static-image and media-image Service for automatic thumbnails
  • Small Admin Layer
  • User and Role Implementation
  • Event-Bus link to RabbitMQ
  • Logging

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'