- Node.js
>= 16.20.1
- Yarn
>= 1.22.0
-
Clone this repository
git clone https://github.com/sooluh/kodepos.git
-
Move to the repository directory
cd kodepos
-
Install dependencies
yarn install
-
Run locally
-
Development mode
yarn dev
-
Production mode
-
Build first
yarn build
-
Start the app
yarn start
-
-
The fastest way to use it privately on PaaS available
Base URL : http://localhost:3000
Endpoint | Description | Parameter | Method |
---|---|---|---|
/search |
To find postcode using keywords | q |
GET |
curl -XGET 'http://localhost:3000/search/?q=danasari'
{
"statusCode": 200,
"code": "OK",
"data": [
{
"province": "Jawa Tengah",
"regency": "Purbalingga",
"district": "Karangjambu",
"village": "Danasari",
"code": "53357"
},
{
"province": "Jawa Tengah",
"regency": "Tegal",
"district": "Bojong",
"village": "Danasari",
"code": "52465"
},
{
"province": "Jawa Tengah",
"regency": "Pemalang",
"district": "Pemalang",
"village": "Danasari",
"code": "52314"
},
{
"province": "Jawa Barat",
"regency": "Ciamis",
"district": "Cisaga",
"village": "Danasari",
"code": "46386"
}
]
}
List of awesome projects powered by this API
-
kodepos-web
Simple web-app for postcode search by dotslashf -
Kode POS
Indonesia postal code search application (kotlin) by AzharRivaldi
List of server APIs ready to use publicly
- https://kodepos.vercel.app
latest
- https://kodepos.onrender.com
latest
- https://kodepos.cyclic.app
v2.2.0
- https://kodepos-82o09pkha-sooluh.vercel.app
v2.2.0
This project is licensed under Apache 2.0 License.