From 4f6ba72fc370ee5a9013e3c96f9f3fce94c7f68c Mon Sep 17 00:00:00 2001 From: Leonard Lorenz Date: Sun, 22 Nov 2020 00:54:24 +0100 Subject: [PATCH] added db setup documentation in readme --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 25f9576..bc1bab5 100644 --- a/README.md +++ b/README.md @@ -7,10 +7,16 @@ Pure rust. Built with actix, diesel, tera, serde and sqlite3. 1. Clone the repository ```bash git clone https://github.com/leonardlorenz/crablog -cd crablog +cd crablog/site ``` -2. Set up your configuration file (see below) -3. Build and run the docker container (Will compile from source and thus take a while) +2. Install diesel and create a database +```bash +cargo install diesel_cli +diesel setup --database-url ../content/db.sqlite3 +diesel migration run --database-url ../content/db.sqlite3 +``` +3. Set up your configuration file (see below) +4. Build and run the docker container (Will compile from source and thus take a while) ```bash docker-compose up -d ```