https://github.com/indahmutiah/ina-zone
Indonesia Zone API specificly provinces and cities
https://github.com/indahmutiah/ina-zone
bun hono rest-api
Last synced: 4 months ago
JSON representation
Indonesia Zone API specificly provinces and cities
- Host: GitHub
- URL: https://github.com/indahmutiah/ina-zone
- Owner: indahmutiah
- License: mit
- Created: 2025-02-09T15:34:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-19T17:24:56.000Z (8 months ago)
- Last Synced: 2025-10-19T22:37:31.178Z (8 months ago)
- Topics: bun, hono, rest-api
- Language: TypeScript
- Homepage: https://ina-zone.indahmutiah.com/
- Size: 348 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# INA-Zone API
## Overview
This is a REST API built with Hono to provide CRUD operations on provincess and zone of Indonesia using PostgreSQL database.
Links:
- [ina-zone.indahmutiah.com](https://ina-zone.indahmutiah.com)
## Tech Stack
- Bun
- Hono
- TypeScript
- Zod OpenAPI
- Docker
- PostgreSQL
- Prisma
## ER Diagram

## Features
- Get all provincess
- Get provinces by id
- Get provinces by code
- Get provinces by slug
- Get all cities
- Get cities by id
- Get cities by code
## Rest API Specification
Prefix: `/api/`
| Enpoint Path | Method | Description |
| --------------------- | ------ | --------------------- |
| `province` | `GET` | Get all provinces |
| `province/:id` | `GET` | Get provinces by id |
| `province/code/:code` | `GET` | Get provinces by code |
| `province/slug/:slug` | `GET` | Get provinces by slug |
| `city` | `GET` | Get all cities |
| `city/:id` | `GET` | Get cities by id |
| `city/code/:code` | `GET` | Get cities by code |
| `city/slug/:slug` | `GET` | Get cities by slug |
## Getting Started
To install dependencies:
```sh
bun install
```
To run:
```sh
bun run dev
```
open http://localhost:3000