You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
About
Blog engine written in Rust, powered by SurrealDB.