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

https://github.com/chneau/bun-hono-react-template


https://github.com/chneau/bun-hono-react-template

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# bun-hono-react-template

This is a small template using Bun, Hono, React, Wouter and React-Query.

## Features

- **Bun**: A fast all-in-one JavaScript runtime, bundler, transpiler and package
manager.
- **Hono**: A small, simple, and ultrafast web framework for the Edge.
- **React**: A JavaScript library for building user interfaces.
- **Wouter**: A minimalist routing library for React.
- **React Query**: A library for fetching, caching and updating asynchronous
data in React.

## Installation

1. Clone the repository:
```bash
git clone https://github.com/chneau/bun-hono-react-template.git
```
2. Install the dependencies:
```bash
bun install
```
3. Start the development server:
```bash
bun run dev
```

## Available Scripts

- `dev`: Starts the development server with hot reloading.
- `start`: Starts the production server.
- `build`: Builds the project for production.
- `run-dist`: Runs the production build.
- `docker-build`: Builds the Docker image.
- `run-docker`: Runs the Docker container.
- `upgrade`: Upgrades the dependencies to the latest version.
- `check`: Formats the code, lints it and checks for errors.
- `lint`: Checks for TypeScript errors.
- `all`: Runs all the checks and upgrades the dependencies.

## Technologies Used

- [Bun](https://bun.sh/)
- [Hono](https://hono.dev/)
- [React](https://react.dev/)
- [Wouter](https://github.com/molefrog/wouter)
- [React Query](https://tanstack.com/query/latest)
- [TypeScript](https://www.typescriptlang.org/)
- [Docker](https://www.docker.com/)