Skip to content

Leechael/minimal-wapo-ts-starter

Repository files navigation

A Minimal Starter Kit for Wapo Gateway

This is a minimal starter kit that build with Hono and deploy with Wapo Gateway later on.

Getting Started

Prerequisites

  • Node.js 16+
  • Docker

Installation

git clone https://github.com/wapo-io/wapo-starter-kit.git
cd wapo-starter-kit
npm install

Usage

To start the local devserver (a.k.a testnet), run:

npm run dev

By default the devserver will listen on http://localhost:8000, and you can access via http://localhost:8000/local, and getting logs via this API:

curl http://localhost:8000/logs/all/local

We also can use vitest to run the test cases, this starter kit already setup shim for Wapo specified APIs:

npm run test

Or:

npm run ci

To build the artifact for deployment (a.k.a production bundle), run:

npm run build

Then you can upload the dist/index.js to IPFS.

License

Apache-2.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published