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

https://github.com/vwh/vwnode

Quick starter template for your Node.js project includes Bun, Biomejs, Typescript and more
https://github.com/vwh/vwnode

biomejs bun docker node-template production public-template template testing tsup typescript

Last synced: 6 months ago
JSON representation

Quick starter template for your Node.js project includes Bun, Biomejs, Typescript and more

Awesome Lists containing this project

README

          


VwNode



QuickStarter for Node.js: A streamlined setup to kickstart your Node.js projects with TypeScript, Biome for linting and formatting, and support for both npm and Bun. Enhance your development workflow with efficiency and flexibility.



Check Format Badge


Lint Badge


Test Badge


TSC Badge

## ๐Ÿ—ƒ๏ธ Project Structure

```bash
vw-node/
โ”œโ”€โ”€ biome.json # Biome configuration
โ”œโ”€โ”€ bun.lockb # Bun lockfile
โ”œโ”€โ”€ Dockerfile # Docker configuration
โ”œโ”€โ”€ package.json # Project metadata and dependencies
โ”œโ”€โ”€ package-lock.json # npm lockfile
โ”œโ”€โ”€ README.md # Project documentation
โ”œโ”€โ”€ src/ # Source files
โ”‚ โ””โ”€โ”€ index.ts # Main TypeScript file
โ”œโ”€โ”€ tests/ # Test files
โ”œโ”€โ”€ tsconfig.json # TypeScript configuration
โ””โ”€โ”€ tsup.config.ts # tsup configuration
```

## ๐Ÿš€ Getting Started

### ๐Ÿ“ฅ Installation

Clone the repository and install dependencies:

```bash
git clone https://github.com/vwh/vwnode
cd vwnode

# Using bun
bun install

# Or using npm
npm install
```

### ๐Ÿ’ป Development Server

Start the development server:

```bash
# Using Bun
bun run dev

# Or using npm
npm run dev
```

### ๐Ÿ—๏ธ Build

Build the project for production:

```bash
# Using Bun
bun run build

# Or using npm
npm run build
```

### ๐Ÿš€ Start

Run the production build:

```bash
# Using Bun
bun run start

# Or using npm
npm run start
```

### ๐Ÿงน Linting

Lint the project files:

```bash
# Using Bun
bun run lint

# Or using npm
npm run lint
```

### ๐ŸŽจ Formatting

Format the project files:

```bash
# Using Bun
bun run format

# Or using npm
npm run format
```

Check the formatting:

```bash
# Using Bun
bun run format:check

# Or using npm
npm run format:check
```

### ๐Ÿง Type Check

```bash
# Using Bun
bun run type-check

# Or using npm
npm run type-check
```

### ๐Ÿณ Docker

Build the Docker image:

```bash
# Using Bun
bun run docker:build

# Or using npm
npm run docker:build
```

Run the Docker image:

```bash
# Using Bun
bun run docker:run

# Or using npm
npm run docker:run
```

## ๐Ÿค Contributing

Contributions are welcome! Feel free to open a pull request with your improvements or fixes.