This is a minimal starter kit that build with Hono and deploy with Wapo Gateway later on.
- Node.js 16+
- Docker
git clone https://github.com/wapo-io/wapo-starter-kit.git
cd wapo-starter-kit
npm install
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.