This project is an API for managing Philippine addresses. It provides endpoints for retrieving address information.
- Retrieve Countries
- Retrieve Regions
- Retrieve Provinces
- Retrieve Cities
- Retrieve Barangays
- Node.js
- npm
- Clone the repository:
git clone https://github.com/Jushiro012623/ph-address-provider-api
- Navigate to the project directory:
cd ph-address-provider-api - Install the dependencies:
npm install
- Start the server:
npm run dev
- The API will be available at
http://localhost:5000.
GET /api/v1/countries- Retrieve a list of all countries.GET /api/v1/ph/regions- Retrieve a list of all regions in the Philippines.GET /api/v1/ph/provinces/:region_code- Retrieve all provinces within a specified region.GET /api/v1/ph/cities/:province_code- Retrieve all cities within a specified province.GET /api/v1/ph/barangays/:city_code- Retrieve all barangays within a specified city.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch) - Make your changes
- Commit your changes (
git commit -am 'Add new feature') - Push to the branch (
git push origin feature-branch) - Create a new Pull Request