From ab4353bf506748883f65c36dc873f6aadc138ae9 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Tue, 31 May 2022 07:49:38 +0300 Subject: [PATCH] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 342ca52..2ab5032 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,10 @@ go install -v github.com/tsirysndr/mada@latest ## 🚀 Usage -If you want to use postgresql (with postgis extension) instead of sqlite (with spatialite), add the environment variable MADA_POSTGRES_URL, for example ``export MADA_POSTGRES_URL=postgres://postgres@localhost:5432/mada?sslmode=disable`` - ```bash +# execute mada init at first launch to initialize the database +~> mada init +# Now you can search fokontany, commune, district or region ~> mada search miaramasoandro 4 matches, showing 1 through 4, took 237.941µs @@ -96,5 +97,6 @@ If you want to use postgresql (with postgis extension) instead of sqlite (with s Mahazoarivo Avarabohitra country Madagascar - ``` + +If you want to use postgresql (with postgis extension) instead of sqlite (with spatialite), add the environment variable MADA_POSTGRES_URL, for example ``export MADA_POSTGRES_URL=postgres://postgres@localhost:5432/mada?sslmode=disable``