No description
Find a file
2026-01-23 14:16:44 +01:00
src Initialize minicms project with Actix-web and Turso integration 2026-01-23 14:00:06 +01:00
.gitignore Initialize minicms project with Actix-web and Turso integration 2026-01-23 14:00:06 +01:00
Cargo.lock Initialize minicms project with Actix-web and Turso integration 2026-01-23 14:00:06 +01:00
Cargo.toml Initialize minicms project with Actix-web and Turso integration 2026-01-23 14:00:06 +01:00
README.md Add README.md with project overview, features, and setup instructions 2026-01-23 14:16:44 +01:00

MiniCMS

MiniCMS is a lightweight, selfcontained content management system written in Rust. It uses ActixWeb for the HTTP server and Turso for a local SQLitelike database. The goal is to provide a minimal, easytorun example that can be extended for learning or small projects.

Features

  • Simple API A few endpoints for creating, reading, and listing posts.
  • Admin panel A very small HTML interface for editing pages and posts.
  • Local database Uses Tursos local mode to store data in a single file (my-database.db).
  • Zero configuration Just run cargo run and the server starts on 127.0.0.1:8080.

Getting Started

Prerequisites

Build and Run

# Clone the repository
git clone https://github.com/your-username/minicms.git
cd minicms

# Build and run the server
cargo run

The server will start and you can visit:

  • http://127.0.0.1:8080/ Hello world endpoint.
  • http://127.0.0.1:8080/hey Manual hello endpoint.
  • http://127.0.0.1:8080/echo POST endpoint that echoes the request body.

Admin Panel

The admin panel is a simple HTML page located in templates/admin.html. It allows you to create and edit posts. To access it, navigate to:

http://127.0.0.1:8080/admin

Note

: The admin panel is intentionally minimal and does not include authentication. For production use, add proper authentication and validation.

Project Structure

├── Cargo.toml
├── src/
│   ├── main.rs             # Application entry point
│   ├── database.rs         # Database helper functions
│   └── templates/
│       └── admin.html      # Simple admin UI
└── minicms.db              # SQLite database file (created on first run)

Extending MiniCMS

  • Add routes Add new Actix routes in main.rs.
  • Add models Define new database tables in database.rs.
  • Improve UI Replace the static admin.html with a fullfeatured frontend.

License

MIT © 2026 Alex Wellnitz