We use cookies to enhance your experience on the site
CodeWorlds

Vite - The Project Propulsion Engine

At NOVA LAB we use the most advanced tools. Vite is our "propulsion engine" - it compiles code faster than a rocket reaching first cosmic velocity!

What is Vite?

Vite (a French word meaning "fast") is a next-generation build tool. Created by Evan You - the same creator as Vue.js.

Why is Vite so fast?

  1. Native ES Modules - serves files directly, no bundling in dev
  2. Hot Module Replacement - changes visible in milliseconds
  3. esbuild - compilation 10-100x faster than old tools

Initializing a Mission Project

To launch a new system project, use the startup protocol:

1npm create vue@latest

The wizard will ask about mission configuration:

1βœ” Project name: … mars-control-system
2βœ” Add TypeScript? … Yes
3βœ” Add JSX Support? … No
4βœ” Add Vue Router? … Yes
5βœ” Add Pinia? … Yes
6βœ” Add Vitest? … Yes
7βœ” Add ESLint? … Yes
8βœ” Add Prettier? … Yes

Mission System Structure

1mars-control-system/
2β”œβ”€β”€ public/           # Static assets (icons, manifests)
3β”œβ”€β”€ src/
4β”‚   β”œβ”€β”€ assets/       # Graphics, CSS styles
5β”‚   β”œβ”€β”€ components/   # Interface modules
6β”‚   β”œβ”€β”€ views/        # Main screens
7β”‚   β”œβ”€β”€ router/       # Navigation configuration
8β”‚   β”œβ”€β”€ stores/       # Pinia databases
9β”‚   β”œβ”€β”€ App.vue       # Main component
10β”‚   └── main.ts       # System entry point
11β”œβ”€β”€ index.html        # HTML template
12β”œβ”€β”€ package.json      # Dependency manifest
13β”œβ”€β”€ vite.config.ts    # Vite engine configuration
14└── tsconfig.json     # TypeScript configuration

Launching the System

1cd mars-control-system
2npm install           # Load modules
3npm run dev           # Run in development mode

The system will start at

http://localhost:5173
- our local simulator.

Go to CodeWorlds→