A blog engine written in Rust, powered by SurrealDB. This project is responsible for the https://rust-dd.com blog.
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.shcargo install surrealdb-migrationssurrealdb-migrations applyNext, 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 --watchFinally, run the Leptos development server. This will watch for changes in your project and automatically reload:
cargo leptos watchWe 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 blogOnce the image is built, run it with:
docker run --env-file .env -p 8080:8080 blog