A RESTful API that serves hierarchical location data of the Philippines for testing purposes
656
A RESTful API that serves hierarchical location data of the Philippines — including regions, provinces, municipalities, and a randomly generated number of barangays per municipality.
This API is intended for testing and simulating RESTful API requests from client applications.
Note: The location data may be outdated and does not reflect the most current official records.
This image is only for development and testing purposes.
Live Preview
https://ph-regions.vercel.app
GitHub Repository
https://github.com/weaponsforge/ph-regions
Clone the project repository.
https://github.com/weaponsforge/ph-regions.git
Create a .env file in the cloned project's /server directory using the .env.example for reference.
.env file contents.Pull the image using Docker compose.
docker pull
Run the container.
docker compose up
Create (seed) initial data.
docker compose exec -it weaponsforge-ph-regions npm run seed
View the API documentation at:
http://localhost:3001
npm startRuns the compiled (JavaScript) server app for production mode.
npm run devRuns the app for local development (when using Node).
npm run seedRuns the database seeder script, inserting initial data contents to the database.
npm run docs:genGenerates the OpenAPI openapi.yaml (YAML) and openapi.json (JSON) files into the /server/public directory.
npm run docs:buildBuilds the API documentation using the Redocly CLI into the /server/public/index.html file.
Content type
Image
Digest
sha256:979a81dd2…
Size
111.4 MB
Last updated
about 2 months ago
docker pull weaponsforge/ph-regions