├── .editorconfig ├── .env.sample ├── .github ├── FUNDING.yml └── wareneutron_psgc_api_github_banner.jpg ├── .gitignore ├── LICENSE.md ├── README.md ├── SECURITY.md ├── code_of_conduct.md ├── package.json ├── public ├── assets │ ├── android-chrome-192x192.png │ ├── android-chrome-512x512.png │ ├── apple-touch-icon.png │ ├── favicon-16x16.png │ ├── favicon-32x32.png │ ├── favicon.ico │ ├── site.webmanifest │ └── wareneutron_psgc_api_opengraph.jpg ├── index.html ├── style.css └── style.css.map ├── src ├── api │ ├── _index.ts │ ├── barangay.ts │ ├── city.ts │ ├── keys.ts │ ├── municipality.ts │ ├── province.ts │ └── region.ts ├── index.ts ├── middlewares.ts ├── models │ ├── apiKeys.ts │ ├── barangayRequest.ts │ ├── cityRequest.ts │ ├── municipalityRequest.ts │ ├── provinceRequest.ts │ └── regionRequest.ts ├── styles │ └── style.scss ├── utils │ ├── allowedIps.ts │ ├── encryptKey.ts │ ├── handleAsync.ts │ └── rateLimit.ts └── v1 │ ├── _index.ts │ ├── barangay.ts │ ├── city.ts │ ├── keys.ts │ ├── municipality.ts │ ├── province.ts │ └── region.ts ├── tsconfig.json ├── vercel.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/.editorconfig -------------------------------------------------------------------------------- /.env.sample: -------------------------------------------------------------------------------- 1 | NODE_ENV=development 2 | PORT=5001 3 | MONGODB_URL='mongodb://localhost/psgc' 4 | API_SECRET='' -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/.github/FUNDING.yml -------------------------------------------------------------------------------- /.github/wareneutron_psgc_api_github_banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/.github/wareneutron_psgc_api_github_banner.jpg -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/SECURITY.md -------------------------------------------------------------------------------- /code_of_conduct.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/code_of_conduct.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/package.json -------------------------------------------------------------------------------- /public/assets/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/public/assets/android-chrome-192x192.png -------------------------------------------------------------------------------- /public/assets/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/public/assets/android-chrome-512x512.png -------------------------------------------------------------------------------- /public/assets/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/public/assets/apple-touch-icon.png -------------------------------------------------------------------------------- /public/assets/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/public/assets/favicon-16x16.png -------------------------------------------------------------------------------- /public/assets/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/public/assets/favicon-32x32.png -------------------------------------------------------------------------------- /public/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/public/assets/favicon.ico -------------------------------------------------------------------------------- /public/assets/site.webmanifest: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/public/assets/site.webmanifest -------------------------------------------------------------------------------- /public/assets/wareneutron_psgc_api_opengraph.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/public/assets/wareneutron_psgc_api_opengraph.jpg -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/public/index.html -------------------------------------------------------------------------------- /public/style.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/public/style.css -------------------------------------------------------------------------------- /public/style.css.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/public/style.css.map -------------------------------------------------------------------------------- /src/api/_index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/api/_index.ts -------------------------------------------------------------------------------- /src/api/barangay.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/api/barangay.ts -------------------------------------------------------------------------------- /src/api/city.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/api/city.ts -------------------------------------------------------------------------------- /src/api/keys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/api/keys.ts -------------------------------------------------------------------------------- /src/api/municipality.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/api/municipality.ts -------------------------------------------------------------------------------- /src/api/province.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/api/province.ts -------------------------------------------------------------------------------- /src/api/region.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/api/region.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/middlewares.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/middlewares.ts -------------------------------------------------------------------------------- /src/models/apiKeys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/models/apiKeys.ts -------------------------------------------------------------------------------- /src/models/barangayRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/models/barangayRequest.ts -------------------------------------------------------------------------------- /src/models/cityRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/models/cityRequest.ts -------------------------------------------------------------------------------- /src/models/municipalityRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/models/municipalityRequest.ts -------------------------------------------------------------------------------- /src/models/provinceRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/models/provinceRequest.ts -------------------------------------------------------------------------------- /src/models/regionRequest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/models/regionRequest.ts -------------------------------------------------------------------------------- /src/styles/style.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/styles/style.scss -------------------------------------------------------------------------------- /src/utils/allowedIps.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/utils/allowedIps.ts -------------------------------------------------------------------------------- /src/utils/encryptKey.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/utils/encryptKey.ts -------------------------------------------------------------------------------- /src/utils/handleAsync.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/utils/handleAsync.ts -------------------------------------------------------------------------------- /src/utils/rateLimit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/utils/rateLimit.ts -------------------------------------------------------------------------------- /src/v1/_index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/v1/_index.ts -------------------------------------------------------------------------------- /src/v1/barangay.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/v1/barangay.ts -------------------------------------------------------------------------------- /src/v1/city.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/v1/city.ts -------------------------------------------------------------------------------- /src/v1/keys.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/v1/keys.ts -------------------------------------------------------------------------------- /src/v1/municipality.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/v1/municipality.ts -------------------------------------------------------------------------------- /src/v1/province.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/v1/province.ts -------------------------------------------------------------------------------- /src/v1/region.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/src/v1/region.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vercel.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/vercel.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OSSPhilippines/psgc-api/HEAD/yarn.lock --------------------------------------------------------------------------------