Tanzania locations, All Regions from Tanzania, with their respective Districts wards & streets.
Very useful for easily implementing Tanzania locations in any application.
What you need before running the code.
- 
Install & Start Postgresql Db Service
 - 
Extract everything
 
- 
Give setup.sh execute permission with
chmod +x ./setup.sh - 
Run the setup file with
./setup.sh - 
Close PL/PgSQL prompts with
:qwhenever prompted, this will happen in the last phrase of data extraction, which you will need to close the prompt for it to continue eg. "save_regions" etc.. 
- 
This will create a database called locations that will have user postgres and have all the data.
 - 
You can check the data with
psql -U postgres -d locationsand run queries likeSELECT * FROM regions;to verify the data. 
- Pull image
 
docker pull archnoob/tanzania-locations-db
- After pulling the image, create a .env file based on the provided template:
 
cp env.example .env
- Run with Docker Compose (Recommended)
 
docker-compose up -d
- Or run mannually (with env vars)
 
docker run -d \
  --name tanzania-locations \
  -e POSTGRES_USER=postgres \
  -e POSTGRES_PASSWORD=password \
  -e POSTGRES_DB=locations \
  archnoob/tanzania-locations-db
A few folks made this happen, from standardizing the data to creating the database, writing the scripts and testing. Thank you all for your contributions.
- Natali Isuja
 - Joe Master
 - Robert Mnama
 - Ano Rebel
 - Zacharia23