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

https://github.com/lfortin/vite-backbone

Starter template for Backbone.
https://github.com/lfortin/vite-backbone

backbone backbonejs boilerplate bootstrap frontend handlebars javascript jquery starter template underscore vite

Last synced: 10 days ago
JSON representation

Starter template for Backbone.

Awesome Lists containing this project

README

          

# vite-backbone

> ๐Ÿ“ฆ Starter template for Backbone.js apps using Vite, Bootstrap 5, Handlebars, jQuery, and Underscore.

[![Vite](https://img.shields.io/badge/Vite-^7.0-blueviolet?logo=vite)](https://vitejs.dev/)
[![Backbone.js](https://img.shields.io/badge/Backbone.js-^1.6-blue?logo=javascript)](https://backbonejs.org/)
[![License: MIT-0](https://img.shields.io/badge/License-MIT--0-yellow.svg)](LICENSE)

---

## ๐Ÿš€ Features

- โœ… Backbone Views, Models, Collections, and Routers
- ๐ŸŽจ Bootstrap 5 layout & styling
- ๐Ÿ“ Handlebars.js for logic-less templating
- โšก Vite for modern development and lightning-fast builds
- ๐Ÿงช Unit testing with Vitest
- ๐Ÿ“ ESLint pre-configured for common globals
- ๐ŸŒ Globals for `$`, `_`, `Backbone`, `Handlebars`
- ๐Ÿ”ง Easily configurable and extendable

---

[![vite-backbone screenshot](https://github.com/lfortin/vite-backbone/blob/main/public/screenshot.png?raw=true)](https://github.com/lfortin/vite-backbone/blob/main/public/screenshot.png?raw=true)

Try it out online:
๐Ÿ‘‰ [Live Demo](https://github.stackblitz.com/lfortin/vite-backbone)

---

## ๐Ÿ› ๏ธ Usage

### 1. Clone & Install

```bash
git clone https://github.com/lfortin/vite-backbone.git
cd vite-backbone
npm install
```

### 2. Start Development Server

```bash
npm run dev
```

### 3. Build for Production

```bash
npm run build
```

---

## ๐Ÿงช Running Tests

This project uses [Vitest](https://vitest.dev/) for unit testing.

To run all tests:

```bash
npm run test
```

---

## ๐Ÿ“ Linting Code

This project uses [ESLint](https://eslint.org/) with a modern configuration tailored for Backbone, Handlebars, jQuery, Underscore and Vitest.

To run the linter:

```bash
npm run lint
```

---

## ๐Ÿ“„ License

MIT-0 ยฉ [lfortin](https://github.com/lfortin)