Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/scottgriv/bun-code_demo

Bun is an all-in-one JavaScript and TypeScript runtime & toolkit designed for speed, complete with a bundler, test runner, and Node.js-compatible package manager.
https://github.com/scottgriv/bun-code_demo

bun code-demo javascript typescript

Last synced: about 1 month ago
JSON representation

Bun is an all-in-one JavaScript and TypeScript runtime & toolkit designed for speed, complete with a bundler, test runner, and Node.js-compatible package manager.

Awesome Lists containing this project

README

        









Bun Badge


GitHub Badge
Email Badge
BuyMeACoffee Badge


Bronze

---------------

Bun Code Demo

Bun is an all-in-one `JavaScript` and `TypeScript` runtime & toolkit designed for speed, complete with a bundler, test runner, and Node.js-compatible package manager.

For example, with only a few lines of code, you can get a HTTP server up and running with `Bun`:
```javascript
const server = Bun.serve({
port: 3000,
fetch(request) {
return new Response("Welcome to Bun!");
},
});

console.log(`Listening on localhost:${server.port}`);
```

---------------

## Table of Contents

- [Getting Started](#getting-started)
- [Resources](#resources)
- [License](#license)
- [Credits](#credits)

## Getting Started

1. Install the Bun CLI globally using `npm install -g @bun/bun`
2. Create a new project using `bun new my-project`
3. Change directory to the new project using `cd my-project`
4. Install dependencies using `bun install`
5. Run the project using `bun run`
6. Open the project in your favorite editor and start coding!

## Resources

- [Bun](https://bun.sh/) - Bun's official website
- [Bun Documentation](https://bun.sh/docs) - Documentation for Bun

## License

This project is released under the terms of **The Unlicense**, which allows you to use, modify, and distribute the code as you see fit.
- [The Unlicense](https://choosealicense.com/licenses/unlicense/) removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
- For more details, see the [LICENSE](LICENSE) file in this repository.

## Credits

**Author:** [Scott Grivner](https://github.com/scottgriv)

**Email:** [[email protected]](mailto:[email protected])

**Website:** [scottgrivner.dev](https://www.scottgrivner.dev)

**Reference:** [Main Branch](https://github.com/scottgriv/bun-code_demo)

---------------