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:
๐ 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.