├── .github ├── dependabot.yml ├── pull_request_template.md └── workflows │ └── nodejs.yml ├── .gitignore ├── .vscode └── settings.json ├── CODE_OF_CONDUCT.md ├── README.md ├── SECURITY.md ├── contribution.md ├── eslint.config.mjs ├── example.env ├── nodemon.json ├── package.json ├── src ├── app.ts ├── controllers │ ├── banks.ts │ ├── counties.ts │ ├── country.ts │ ├── health_check.ts │ ├── hospitals.ts │ ├── postal_codes.ts │ ├── towns.ts │ ├── tribes.ts │ ├── universities.ts │ └── wards.ts ├── countyflags │ ├── 150px-Flag_of_Nairobi.svg.png │ ├── 158px-Old_Flag_of_Kiambu_County.svg.png │ ├── Elgeyo_Marakwet_Flag.png │ ├── Flag_of_Baringo_County.png │ ├── Flag_of_Bomet_County.png │ ├── Flag_of_Busia_County.png │ ├── Flag_of_Homa_Bay_County.png │ ├── Flag_of_Kilifi_County.png │ ├── Flag_of_Laikipia_County.png │ ├── Flag_of_Machakos_County.png │ ├── Flag_of_Marsabit_County.png │ ├── Flag_of_Meru_County.png │ └── Flag_of_Mombasa.png ├── env.ts ├── middlewares │ └── loggingMiddleware.ts ├── public │ ├── banks.ts │ ├── counties.ts │ ├── country.json │ ├── hospitals.ts │ ├── postal_codes.ts │ ├── towns.ts │ ├── tribes.ts │ ├── universities.ts │ └── wards.ts ├── server.ts └── utilities │ ├── debug.ts │ └── util.ts ├── tests └── api_tests │ ├── banks.test.ts │ ├── county.test.ts │ ├── health_check.test.ts │ ├── postal_codes.test.ts │ └── wards.test.ts ├── tsconfig.json └── yarn.lock /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | dist 3 | .tsbuildinfo 4 | .env 5 | yarn-error.log -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/SECURITY.md -------------------------------------------------------------------------------- /contribution.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/contribution.md -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /example.env: -------------------------------------------------------------------------------- 1 | PORT=3000 2 | NODE_ENV=development -------------------------------------------------------------------------------- /nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/nodemon.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/package.json -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/app.ts -------------------------------------------------------------------------------- /src/controllers/banks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/controllers/banks.ts -------------------------------------------------------------------------------- /src/controllers/counties.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/controllers/counties.ts -------------------------------------------------------------------------------- /src/controllers/country.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/controllers/country.ts -------------------------------------------------------------------------------- /src/controllers/health_check.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/controllers/health_check.ts -------------------------------------------------------------------------------- /src/controllers/hospitals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/controllers/hospitals.ts -------------------------------------------------------------------------------- /src/controllers/postal_codes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/controllers/postal_codes.ts -------------------------------------------------------------------------------- /src/controllers/towns.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/controllers/towns.ts -------------------------------------------------------------------------------- /src/controllers/tribes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/controllers/tribes.ts -------------------------------------------------------------------------------- /src/controllers/universities.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/controllers/universities.ts -------------------------------------------------------------------------------- /src/controllers/wards.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/controllers/wards.ts -------------------------------------------------------------------------------- /src/countyflags/150px-Flag_of_Nairobi.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/150px-Flag_of_Nairobi.svg.png -------------------------------------------------------------------------------- /src/countyflags/158px-Old_Flag_of_Kiambu_County.svg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/158px-Old_Flag_of_Kiambu_County.svg.png -------------------------------------------------------------------------------- /src/countyflags/Elgeyo_Marakwet_Flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/Elgeyo_Marakwet_Flag.png -------------------------------------------------------------------------------- /src/countyflags/Flag_of_Baringo_County.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/Flag_of_Baringo_County.png -------------------------------------------------------------------------------- /src/countyflags/Flag_of_Bomet_County.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/Flag_of_Bomet_County.png -------------------------------------------------------------------------------- /src/countyflags/Flag_of_Busia_County.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/Flag_of_Busia_County.png -------------------------------------------------------------------------------- /src/countyflags/Flag_of_Homa_Bay_County.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/Flag_of_Homa_Bay_County.png -------------------------------------------------------------------------------- /src/countyflags/Flag_of_Kilifi_County.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/Flag_of_Kilifi_County.png -------------------------------------------------------------------------------- /src/countyflags/Flag_of_Laikipia_County.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/Flag_of_Laikipia_County.png -------------------------------------------------------------------------------- /src/countyflags/Flag_of_Machakos_County.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/Flag_of_Machakos_County.png -------------------------------------------------------------------------------- /src/countyflags/Flag_of_Marsabit_County.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/Flag_of_Marsabit_County.png -------------------------------------------------------------------------------- /src/countyflags/Flag_of_Meru_County.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/Flag_of_Meru_County.png -------------------------------------------------------------------------------- /src/countyflags/Flag_of_Mombasa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/countyflags/Flag_of_Mombasa.png -------------------------------------------------------------------------------- /src/env.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/env.ts -------------------------------------------------------------------------------- /src/middlewares/loggingMiddleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/middlewares/loggingMiddleware.ts -------------------------------------------------------------------------------- /src/public/banks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/public/banks.ts -------------------------------------------------------------------------------- /src/public/counties.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/public/counties.ts -------------------------------------------------------------------------------- /src/public/country.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/public/country.json -------------------------------------------------------------------------------- /src/public/hospitals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/public/hospitals.ts -------------------------------------------------------------------------------- /src/public/postal_codes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/public/postal_codes.ts -------------------------------------------------------------------------------- /src/public/towns.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/public/towns.ts -------------------------------------------------------------------------------- /src/public/tribes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/public/tribes.ts -------------------------------------------------------------------------------- /src/public/universities.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/public/universities.ts -------------------------------------------------------------------------------- /src/public/wards.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/public/wards.ts -------------------------------------------------------------------------------- /src/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/server.ts -------------------------------------------------------------------------------- /src/utilities/debug.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/utilities/debug.ts -------------------------------------------------------------------------------- /src/utilities/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/src/utilities/util.ts -------------------------------------------------------------------------------- /tests/api_tests/banks.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/tests/api_tests/banks.test.ts -------------------------------------------------------------------------------- /tests/api_tests/county.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/tests/api_tests/county.test.ts -------------------------------------------------------------------------------- /tests/api_tests/health_check.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/tests/api_tests/health_check.test.ts -------------------------------------------------------------------------------- /tests/api_tests/postal_codes.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/tests/api_tests/postal_codes.test.ts -------------------------------------------------------------------------------- /tests/api_tests/wards.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/tests/api_tests/wards.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dxphilo/kenya-api/HEAD/yarn.lock --------------------------------------------------------------------------------