Skip to main content
ProductsDesktop toolsTASTECADDrawing reviewTASTEFILESFile managementTASTEFTPFile transferTASTESSHRemote workspaceTASTEZIPCompression and extractionTASTEWINMFile managementDeveloper toolsTASTECODERust integrated development environmentTASTESTUDIOIntegrated development and test environmentTASTEETLData integration (ETL)ServersTASTEREMOTERemote desktop serverTASTEGEOGeospatial serverTASTEMAILMail workspaceInvestingTASTESTOCKStock auto-trading desktop appGet startedDownloadsDocumentationBuyAll products
Marketplace
News
TechNewsToday's dev newsDeveloper docsProgramming languagesRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWeb front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngularServer frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressApp & desktop frameworksTauriFlutterReact NativeElectronAlgorithmsAlgorithm basicsCore algorithmsAdvanced algorithmsPractical algorithms
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcaseCommunity guide
Work with usTech transferWebsite buildDesktop app buildRelease and payment pipelineSales partnerContact
ServicesRemote desktopCustom installer packages
TASTEDEV
Products

Desktop tools

TASTECADComplex drawings, opened with easeTASTEFILESJust the files you need, as fast as possibleTASTEFTPThe tidiest path for your filesTASTESSHA stronger link between you and your serversTASTEZIPPack faster, unpack saferTASTEWINMA keyboard-first file manager with two panes

Developer tools

TASTECODEEdit, build, debug and test Rust apps in one windowTASTESTUDIOFrom editing to remote tests and approved AI fixesTASTEETLMove data while you watch the values

Servers

TASTEREMOTEA remote desktop you run on your own serverTASTEGEORebuilding a GeoServer-compatible geospatial server in RustTASTEMAILTake back control of your email

Investing

TASTESTOCKStock auto-trading that follows the rules you set: when, and what

Get started

DownloadsLatest builds of every productDocsHow to use each productBuySubscriptions and perpetual licencesAll productsEvery product at a glance
All products
MarketplaceNews
Tech

News

Today's dev newsOfficial announcements on languages, frameworks, GitHub and AIDeveloper docsGuides to languages, frameworks and algorithms

Programming languages

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Frameworks

Web front-end frameworksNext.jsReactVue.js · NuxtSvelteKitAngular
Server frameworksSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
App & desktop frameworksTauriFlutterReact NativeElectron

Algorithms

Algorithm basicsComplexity analysis · Sorting · Searching · Basic data structures · Trees and heapsCore algorithmsGraph traversal · Shortest paths & minimum spanning trees · Dynamic programming · Greedy algorithms · Divide and conquer · BacktrackingAdvanced algorithmsString algorithms · Math and number theory · Bit manipulation · Segment trees · Union-findPractical algorithmsCoding interview strategy · LRU cache · Rate limiting · Consistent hashing
All development docs
Community
ProjectsDiscover builders and their workDevelopment logsDecisions and lessons learnedPromptsReusable instructionsAI tool issuesProblems and workarounds for Claude, Codex, GeminiShowcaseFinished resultsCommunity guideHow we build in the open
Work with us
Tech transferNative apps in Rust and eguiWebsite build10 languages, accounts, docs and downloadsDesktop app buildRust and egui, no WebViewRelease and payment pipelineSigning, MSI, deb, rpm, AppImage, hashesSales partnerRecommend us and earn 30%ContactBuilds, partnerships and investment
Services
Remote desktopReach your computer from a browserCustom installer packagesOnly the features you need, settings preloaded
Buy
EN
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Log in
Log in
TASTEDEV

From small tools to better development.

support@tastedev.netSupport TASTEDEV
ProductsProduct lineupBuyDocsDownloadsMarketplaceSupport
CommunityProjectsDevelopment logsPromptsAI tool issuesShowcase
PoliciesAbout usPrivacy policyTerms of serviceSubscription termsRefund policyCommunity guidelines
AccountLog inSign up
Visitors
Today
Yesterday
Total views
Company
GXSOFT
Representative
CHOI YOUNG GU
Business registration number
853-44-00368
Address
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Phone
+82-10-4404-1523
Email
whitecalvin@tastedev.net
Privacy officer
CHOI YOUNG GU

© 2026 TASTEDEVProduct information is based on verified development sources.Released · improving

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

Vue.js · Nuxt guide · 2/6

Project Structure

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 VITE_ are exposed to client code, as in 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.
Questions about this chapter?
Previous chapterGetting Started with Vue and NuxtNext chapterCore Concepts: SFCs, Reactivity, Components, Nuxt Routing

0 comments

Top commentsNewest first

Sign in · Sign in to leave a comment.