From c3f9e01af1141001cf5147c3dbb54e3875f9f58c Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Mon, 1 Aug 2016 20:01:47 -0700 Subject: [PATCH] Added run notes to TODO. --- examples/todo/README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/examples/todo/README.md b/examples/todo/README.md index 7689c26d..f284443b 100644 --- a/examples/todo/README.md +++ b/examples/todo/README.md @@ -1,4 +1,16 @@ Rocket Todo Example =================== -Fill this in on instructions for how to create the DB, etc. +Before running this example, you'll need to ensure there's a database file +present. You can do this with Diesel. + +Running migration with Diesel +----------------------------- + +Just run the following commands in your shell: + +``` +cargo install diesel_cli # installs the diesel CLI tools +DATABASE_URL=db/db.sql diesel migration run # create db/db.sql +``` +