-
Clone this repository
git clone https://github.com/sooluh/kodepos.git
-
Change the current directory to this repository folder
cd kodepos
-
Install dependencies
yarn install
-
Run the app! (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:5000
Endpoint | Description | Parameter | Method |
---|---|---|---|
/search |
To find postcode using keywords | q |
GET |
curl -XGET 'http://localhost:5000/search/?q=danasari'
{
"success": true,
"message": "Data search successfully parsed.",
"data": [
{
"province": "Jawa Tengah",
"city": "Purbalingga",
"subdistrict": "Karangjambu",
"urban": "Danasari",
"postalcode": "53357"
},
{
"province": "Jawa Tengah",
"city": "Tegal",
"subdistrict": "Bojong",
"urban": "Danasari",
"postalcode": "52465"
},
{
"province": "Jawa Tengah",
"city": "Pemalang",
"subdistrict": "Pemalang",
"urban": "Danasari",
"postalcode": "52314"
},
{
"province": "Jawa Barat",
"city": "Ciamis",
"subdistrict": "Cisaga",
"urban": "Danasari",
"postalcode": "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
Code licensed under Apache 2.0 License.