Vai al contenuto principale
ProdottiStrumenti desktopTASTECADVisualizzazione disegniTASTEFILESGestione fileTASTEFTPTrasferimento fileTASTESSHSpazio di lavoro remotoTASTEZIPCompressione ed estrazioneTASTEWINMGestione fileStrumenti per sviluppatoriTASTECODEAmbiente di sviluppo integrato per RustTASTESTUDIOAmbiente integrato di sviluppo e testTASTEETLIntegrazione dati (ETL)ServerTASTEREMOTEServer di desktop remotoTASTEGEOServer geospazialeTASTEMAILSpazio di lavoro emailInvestimentiTASTESTOCKApp desktop di trading automatico azionarioIniziaDownloadDocumentazioneAcquistaTutti i prodotti
Marketplace
Notizie
TecnologiaNotizieNotizie di sviluppo di oggiDocumentazioneLinguaggi di programmazioneRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartFramework frontend webNext.jsReactVue.js · NuxtSvelteKitAngularFramework serverSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressFramework per app e desktopTauriFlutterReact NativeElectronAlgoritmiBasi degli algoritmiAlgoritmi fondamentaliAlgoritmi avanzatiAlgoritmi pratici
CommunityProgettiLog di sviluppoPromptProblemi degli strumenti di IAVetrinaGuida alla community
CollaboraTrasferimento tecnicoRealizzazione del sito webRealizzazione di app desktopPipeline di rilascio e pagamentoPartner commercialeContatti
ServiziDesktop remotoPacchetti di installazione su misura
TASTEDEV
Prodotti

Strumenti desktop

TASTECADApri con leggerezza anche i disegni più complessiTASTEFILESSolo i file che servono, alla massima velocitàTASTEFTPLa via più ordinata per i tuoi fileTASTESSHUn legame più solido tra te e i tuoi serverTASTEZIPComprimi più veloce, estrai più sicuroTASTEWINMUn file manager a due pannelli pensato per la tastiera

Strumenti per sviluppatori

TASTECODEModifica, compila, esegui il debug e testa app Rust in un'unica finestraTASTESTUDIODalla modifica ai test remoti e alle correzioni IA approvateTASTEETLSposta i dati guardando i valori

Server

TASTEREMOTEUn desktop remoto che gira sul tuo serverTASTEGEOUn server geospaziale compatibile con GeoServer, ricostruito in RustTASTEMAILRiprendi il controllo della tua posta

Investimenti

TASTESTOCKTrading automatico azionario secondo le regole che decidi tu: quando e che cosa

Inizia

DownloadUltime versioni di ogni prodottoDocsCome usare ogni prodottoAcquistaAbbonamenti e licenze perpetueTutti i prodottiTutti i prodotti a colpo d’occhio
Tutti i prodotti
MarketplaceNotizie
Tecnologia

Notizie

Notizie di sviluppo di oggiAnnunci ufficiali su linguaggi, framework, GitHub e IADocumentazioneGuide a linguaggi, framework e algoritmi

Linguaggi di programmazione

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Framework

Framework frontend webNext.jsReactVue.js · NuxtSvelteKitAngular
Framework serverSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
Framework per app e desktopTauriFlutterReact NativeElectron

Algoritmi

Basi degli algoritmiAnalisi della complessità · Ordinamento · Ricerca · Strutture dati di base · Alberi e heapAlgoritmi fondamentaliVisita dei grafi · Cammini minimi e alberi ricoprenti · Programmazione dinamica · Algoritmi greedy · Divide et impera · BacktrackingAlgoritmi avanzatiAlgoritmi sulle stringhe · Matematica e teoria dei numeri · Manipolazione dei bit · Alberi di segmenti · Union-FindAlgoritmi praticiStrategia per colloqui di programmazione · Cache LRU · Rate limiting · Hashing consistente
Tutta la documentazione di sviluppo
Community
ProgettiScopri sviluppatori e lavoriLog di sviluppoDecisioni e lezioni appresePromptIstruzioni riutilizzabiliProblemi degli strumenti di IAProblemi e alternative di Claude, Codex, GeminiVetrinaRisultati completatiGuida alla communityCome sviluppiamo in modo aperto
Collabora
Trasferimento tecnicoApp native in Rust ed eguiRealizzazione del sito web10 lingue, account, documentazione e downloadRealizzazione di app desktopRust ed egui, senza WebViewPipeline di rilascio e pagamentoFirma, MSI, deb, rpm, AppImage, hashPartner commercialeConsigliaci e ricevi il 30%ContattiSviluppo, partnership e investimenti
Servizi
Desktop remotoRaggiungi il tuo computer dal browserPacchetti di installazione su misuraSolo il necessario, impostazioni precaricate
Acquista
IT
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Accedi
Accedi
TASTEDEV

Dai piccoli strumenti a uno sviluppo migliore.

support@tastedev.netSostieni TASTEDEV
ProdottiGamma di prodottiAcquistaDocsDownloadMarketplaceAssistenza
CommunityProgettiLog di sviluppoPromptProblemi degli strumenti di IAVetrina
NormeChi siamoInformativa sulla privacyTermini di servizioCondizioni di abbonamentoRimborsiLinee guida della community
AccountAccediRegistrati
Visitatori
Oggi
Ieri
Visualizzazioni totali
Società
GXSOFT
Rappresentante
CHOI YOUNG GU
Numero di registrazione
853-44-00368
Indirizzo
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Telefono
+82-10-4404-1523
E-mail
whitecalvin@tastedev.net
Responsabile privacy
CHOI YOUNG GU

© 2026 TASTEDEVLe informazioni sui prodotti si basano su fonti di sviluppo verificate.Rilasciato · in miglioramento

Documentazione di Vue.js · Nuxt
Vue.js · Nuxt
Getting Started with Vue and NuxtProject StructureCore Concepts: SFCs, Reactivity, Components, Nuxt RoutingData and StateTestingBuild and Deployment
Discussioni

Guida a Vue.js · Nuxt · 2/6

Project Structure

Per ora questo capitolo è disponibile solo in inglese.

Vue and Nuxt projects are organized differently. A create-vue project follows ordinary Vite conventions and you write the entry point yourself. In Nuxt, folder names carry meaning: put a file in the right place and it becomes a route, a component or a server API. This chapter tours both layouts and their main configuration files.

A create-vue project

A project created with TypeScript, Router, Pinia and Vitest looks roughly like this:

my-vue-app/
├── index.html            # Vite's entry HTML
├── public/               # static files copied as-is
├── src/
│   ├── main.ts           # creates the app, registers plugins
│   ├── App.vue           # root component
│   ├── assets/           # CSS and images processed by the build
│   ├── components/       # reusable components
│   ├── views/            # screen components mapped to routes
│   ├── router/index.ts   # Vue Router setup
│   └── stores/           # Pinia stores
├── vite.config.ts
├── tsconfig.json
└── package.json

Splitting views/ from components/ is a convention rather than a rule, but separating screens from reusable pieces keeps things easy to find as the project grows.

The entry point: main.ts

A Vue app is created with createApp, gets its plugins registered, and is mounted onto an element in index.html.

import { createApp } from "vue";
import { createPinia } from "pinia";
import App from "./App.vue";
import router from "./router";
import "./assets/main.css";

const app = createApp(App);
app.use(createPinia());
app.use(router);
app.mount("#app");

Routes are declared explicitly in src/router/index.ts. Lazy-loading rarely visited views with () => import(...) keeps the initial bundle small.

import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: "/", name: "home", component: HomeView },
    { path: "/about", name: "about", component: () => import("../views/AboutView.vue") },
  ],
});

export default router;

Configuration: vite.config.ts

The Vite config registers the Vue plugin and a path alias. @ points at src, so you can write import Foo from "@/components/Foo.vue".

import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";

export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: { "@": fileURLToPath(new URL("./src", import.meta.url)) },
  },
});

Environment variables go in .env files at the project root. Only names prefixed with are exposed to client code, as in .

Domande su questo capitolo?
Capitolo precedenteGetting Started with Vue and NuxtCapitolo successivoCore Concepts: SFCs, Reactivity, Components, Nuxt Routing
VITE_
import.meta.env.VITE_API_URL

A Nuxt project

In Nuxt, folder names are the conventions. Recent versions of Nuxt keep application code under an app/ directory and server code in server/ at the root. You will also see older projects with pages/ and components/ at the root.

my-nuxt-app/
├── app/
│   ├── app.vue           # root component
│   ├── pages/            # file-based routes
│   ├── components/       # auto-imported components
│   ├── composables/      # auto-imported composables
│   ├── layouts/          # layouts that wrap pages
│   ├── middleware/       # route middleware
│   └── plugins/          # plugins run at app startup
├── server/
│   ├── api/              # /api/* endpoints
│   └── routes/           # server routes without the /api prefix
├── public/               # static files
└── nuxt.config.ts
FolderPurpose
pages/The file path becomes the URL; pages/about.vue serves /about
components/Used directly in templates, no import needed
composables/useXxx functions are imported automatically
server/api/Each file becomes one API endpoint
layouts/Shared frames such as headers and footers

Configuration: nuxt.config.ts

Nuxt configuration lives in a single defineNuxtConfig call: modules, global CSS, runtime config, per-route rendering rules and more.

export default defineNuxtConfig({
  modules: ["@pinia/nuxt"],
  css: ["~/assets/css/main.css"],
  runtimeConfig: {
    apiSecret: "",              // server-only
    public: { apiBase: "/api" } // also exposed to the client
  },
  devtools: { enabled: true },
});

runtimeConfig values can be overridden at runtime with environment variables such as NUXT_API_SECRET and NUXT_PUBLIC_API_BASE, and are read in code with useRuntimeConfig(). Nuxt generates type information into the .nuxt/ folder, so keep that folder out of version control.

Summary

  • A create-vue project builds the app in main.ts and declares routes explicitly in router/index.ts.
  • Remember the @ alias in the Vite config and the VITE_ prefix for client-side environment variables.
  • In Nuxt, folder names such as pages/, components/, composables/ and server/ are conventions, and configuration lives in nuxt.config.ts.
  • Keep secrets in runtimeConfig and inject them through environment variables.

0 commenti

Commenti principaliPrima i più recenti

Accedi · Accedi per lasciare un commento.