https://github.com/jellydn/hapi-demo
A simple Hapi server for demonstration purposes, designed to work with Hurl for testing HTTP requests.
https://github.com/jellydn/hapi-demo
hapi http-requests hurl testing-tools
Last synced: 6 months ago
JSON representation
A simple Hapi server for demonstration purposes, designed to work with Hurl for testing HTTP requests.
- Host: GitHub
- URL: https://github.com/jellydn/hapi-demo
- Owner: jellydn
- License: mit
- Created: 2023-10-29T11:10:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T00:46:00.000Z (6 months ago)
- Last Synced: 2025-04-11T01:36:22.541Z (6 months ago)
- Topics: hapi, http-requests, hurl, testing-tools
- Language: TypeScript
- Homepage: https://hapi-demo.fly.dev/documentation
- Size: 177 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Welcome to hapi-demo 👋

[](http://next-swagger-doc.productsway.com/)
[](#)
[](https://twitter.com/jellydn)## Overview
> A simple Hapi server for demonstration purposes, designed to work with Hurl for testing HTTP requests.
[![IT Man - Building and Testing a #Hapi Server with #Hurl: A Step-By-Step Demo [Vietnamese]](https://i.ytimg.com/vi/LP_RXe8cM_s/hqdefault.jpg)](https://www.youtube.com/watch?v=LP_RXe8cM_s)
## Prerequisites
- [Bun](https://bun.sh/) installed on your system.
- [antfu/ni](https://github.com/antfu/ni) 💡 Use the right package manager.## 🚀 Quick Start
### Installation
```sh
ni
```### Usage
Start the development server:
```sh
nr dev
```Or run with docker compose:
```sh
docker network create web
docker-compose up
```Run tests using Hurl:
```sh
nr test
```## 📸 Screenshots
### Swagger UI - http://localhost:3000/documentation
[](https://gyazo.com/bc045297c712ac770900b91acd314031)
### Testing with Hurl
[](https://gyazo.com/5b2f7c30f5511f0575e7a992a0795402)
## ✅ Testing
Run tests using Hurl:
```sh
hurl --test tests/todo.hurl
```For verbose output:
```sh
hurl --verbose tests/todo.hurl
```## 📚 Resources
- [Hapi - Official Documentation](https://hapi.dev/tutorials/?lang=en_US)
- [Hurl - Run and Test HTTP Requests](https://hurl.dev/)
- [jellydn/hurl.nvim: Hurl.nvim is a Neovim plugin that brings the power of the Hurl command line tool into your editor. Designed to run HTTP requests from `.hurl` files, this plugin simplifies the API development process, making it both efficient and versatile.](https://github.com/jellydn/hurl.nvim)
- [![IT Man - A Comprehensive Guide to Fastify, Bun, and CI with StepCI [Vietnamese]](https://i.ytimg.com/vi/pgofbfmxMto/mqdefault.jpg)](https://www.youtube.com/watch?v=pgofbfmxMto)## 👤 Author
👤 **Huynh Duc Dung**
- Website: https://productsway.com/
- Twitter: [@jellydn](https://twitter.com/jellydn)
- Github: [@jellydn](https://github.com/jellydn)## 🌟 Show Your Support
If this project has been helpful, please give it a ⭐️.
[](https://ko-fi.com/dunghd)
[](https://paypal.me/dunghd)
[](https://www.buymeacoffee.com/dunghd)