Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/scottgriv/bun-code_demo
- Owner: scottgriv
- License: unlicense
- Created: 2023-09-20T03:39:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-03T17:16:09.000Z (8 months ago)
- Last Synced: 2024-12-08T16:46:42.825Z (about 2 months ago)
- Topics: bun, code-demo, javascript, typescript
- Language: TypeScript
- Homepage:
- Size: 388 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---------------
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)---------------