/vscode-remote-try-bun

Testing out bun

Primary LanguageDockerfileMIT LicenseMIT

Tryout Bun - all-in-one JS runtime

Bun, an incredibly faster all-in-one JS/TS runtime

This template repo serves as a flavor of linux-based quick-starter development container for use with VS Code Remote - Containers and GitHub Codespaces.

Originally, this dev container was created to tryout bun without having to install it locally, especially on Windows.

What's in it:

  • Bun, all-in-one JS runtime latest binaries
  • VS Code Extensions for JS/TS and related work
  • Git and GitHub CLI for versioning
  • ZSH integrated Terminal
  • Docker CLI with Compose v2

Using This Template

If you are completely new to bun, Awesome Bun is a good source to start with.

Next, you want to create a copy of this template. It is easy as forking. The repo is marked as a Template so you will only have to Use This Template and follow the instructions.

Things to Try

First, you want to ensure source code is Reopened in Container. Then you'll be able to work with it like you would locally.

With VS Code:

  • Open a new Terminal
  • Type bun --version to verify the version
  • Type bun run test-project/server.js

    Browse http://localhost:3000 on your favorite web browser to see the result.

Feedback

If you have any technical problems with Bun, you are better off asking Bun's Discord community directly, since you'll end up getting a much faster response back that way.

Contributing

The official repo to contribute would be @oven-sh/bun.

License

Copyright (c) Kosala Nuwan Perera. All rights reserved.

The source code is license under the MIT license.