V Vite Starter

March 11, 2025 ยท View on GitHub

V Vite Starter is a minimal and ready-to-use template for building Veb applications with V Vite integration. Easily set up your Vlang project with Vite.js for a smooth frontend development experience.

๐ŸŽฏ Features

  • โœ… Preconfigured Veb server with V Vite
  • โšก Automatic asset handling using Vite.js
  • ๐Ÿ”ฅ Hot Module Replacement (HMR) enabled
  • ๐Ÿ› ๏ธ Simple and flexible project structure

โš™๏ธ Requirements

Ensure you have the following installed:

  • V (latest version)
  • Bun (for development scripts)

๐Ÿš€ Installation

Clone the repository and start your project:

git clone https://github.com/v-vite/starter.git my-project
cd my-project
v run main.v

Install dependencies

Ensure you have V and Bun installed:

v install
bun install

๐Ÿ“š Usage

Running the Development Server

Start the Veb and Vite in development mode:

bun dev

Building for Production

bun prod

๐Ÿ› ๏ธ Project Structure

my-project/
โ”œโ”€โ”€ public/         # Static assets
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ resources/  # Frontend source (JS, CSS, etc.)
โ”‚   โ”œโ”€โ”€ templates/  # HTML templates
โ”‚   โ””โ”€โ”€ main.v      # Main Veb app
โ”œโ”€โ”€ vite.config.ts  # Vite configuration
โ”œโ”€โ”€ package.json    # Frontend dependencies
โ”œโ”€โ”€ v.mod           # Vlang module config
โ””โ”€โ”€ README.md

๐Ÿค Contributing

Contributions are welcome! Feel free to submit issues or pull requests.

๐Ÿœ License

This project is licensed under the MIT License. See the LICENSE file for details.