82f7e006cfe10bc1e881e819761ab0739722c76f
Rust Blog CMS
A simple blog CMS built with Rust, Axum, Askama, and SQLite.
Prerequisites
- Rust & Cargo (latest stable version)
Configuration
-
Copy the
.env.examplefile to create your local.envfile:cp .env.example .env -
Open the
.envfile and set your environment variables:PORT: The port your server will listen on (default is3000).DATABASE_URL: The connection string for your SQLite database (default issqlite://data.db).
Database Setup
If you are using the sqlx CLI, you can create the database with:
cargo install sqlx-cli --no-default-features --features rustls,sqlite
sqlx database create
(Optionally run migrations if any exist: sqlx migrate run)
Running the app
To start the server, simply run:
cargo run
Then, open your web browser and navigate to http://localhost:3000 (or whichever port you configured).
Description
Languages
Rust
74.7%
HTML
20.8%
Dockerfile
4.5%