Skip to content

rust-dd/blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ca6cad2 · Feb 11, 2025
Nov 16, 2024
Sep 22, 2024
Aug 25, 2024
Sep 22, 2024
Feb 6, 2025
Feb 6, 2025
Feb 6, 2025
Feb 11, 2025
Aug 31, 2024
Dec 1, 2024
Aug 6, 2024
Feb 6, 2025
Feb 6, 2025
Feb 7, 2025
Aug 10, 2024
Nov 5, 2024
Aug 7, 2024
Sep 26, 2024
Feb 6, 2025
Jan 5, 2025
Sep 1, 2024
Aug 6, 2024
Jan 5, 2025
Feb 6, 2025
Feb 7, 2025

Repository files navigation

Blog

example workflow

A blog engine written in Rust, powered by SurrealDB. This project is responsible for the https://rust-dd.com blog.

Running the Project

To get started with running the project locally, follow the steps below. These commands will compile your stylesheets and set up a development server that watches for changes.

First, run the following script to set up your Surreal database:

./db.sh
cargo install surrealdb-migrations
surrealdb-migrations apply

Next, compile the CSS using TailwindCSS. This command will watch for changes in your CSS files and recompile them automatically:

npx tailwindcss -i input.css -o ./style/output.css --watch

Finally, run the Leptos development server. This will watch for changes in your project and automatically reload:

cargo leptos watch

Deployment

We provide a Dockerfile that allows you to start the blog engine, connecting to an external SurrealDB. The connection details must be defined in the environment variables.

For containerizing the application, build the Docker image with the following command:

docker build . -t blog

Once the image is built, run it with:

docker run --env-file .env -p 8080:8080 blog