A sample application using Bun + Vite + React.
The application is a simple Time Notifier, that displays the current time and speaks it at some intervals, using Web Speech API for the Text-to-Speech (TTS) part.
This is a sample application to test Bun, a fast Javascript all-in-one toolkit, with React, a Javascript front-end library. Although Bun can run React, it is not a framework so it needs a framework like Vite to build an app.
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
First, make sure to install Bun
$ npm install -g bun
See Bun installation page for more details.
To clone the repository and install the dependencies
$ bun create github.com/supershaneski/bun-sample-app myproject
To run the app
$ cd myproject
$ bun dev
Open your browser to http://localhost:5173/
to load the application page.