Introduction
Bun is a fast all-in-one JavaScript runtime & toolkit with built-in bundler, test runner, and Node.js-compatible package manager. This guide uses Hono, a lightweight and ultrafast web framework.Prerequisites
- a UNIX-like system (see WSL if you are using Windows), in order to use the Valyent CLI
- a Valyent account, with a registered payment method (you can sign up here)
- Bun installed on your machine
Installing the CLI
Authenticating
Initializing the project
First, let’s create a new directory and initialize a Bun project:index.ts
file:
valyent.toml
configuration file: