本文へスキップ
製品デスクトップツールTASTECAD図面の確認TASTEFILESファイル管理TASTEFTPファイル転送TASTESSHリモートワークスペースTASTEZIP圧縮と展開TASTEWINMファイル管理開発ツールTASTECODERust 統合開発環境TASTESTUDIO統合開発・テスト環境TASTEETLデータ統合(ETL)サーバーTASTEREMOTEリモートデスクトップサーバーTASTEGEO空間情報サーバーTASTEMAILメールワークスペース投資TASTESTOCK株式自動売買デスクトップアプリはじめるダウンロードドキュメント購入すべての製品
マーケットプレイス
ニュース
技術ニュース今日の開発ニュース開発ドキュメントプログラミング言語RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartWebフロントエンド フレームワークNext.jsReactVue.js · NuxtSvelteKitAngularサーバー フレームワークSpring BootDjangoFastAPIASP.NET CoreNestJS · Expressアプリ・デスクトップ フレームワークTauriFlutterReact NativeElectronアルゴリズムアルゴリズムの基礎主要アルゴリズム発展アルゴリズム実務のアルゴリズム
コミュニティプロジェクト開発ログプロンプトAIツールの問題ショーケースコミュニティガイド
協業技術移転ウェブサイト構築デスクトップアプリ構築リリース・決済パイプライン販売パートナーお問い合わせ
サービスリモートデスクトップインストールパッケージのカスタマイズ
TASTEDEV
製品

デスクトップツール

TASTECAD複雑な図面を、軽やかにひらくTASTEFILES必要なファイルだけを、最速でTASTEFTPファイルが行き交う、いちばん端正な道TASTESSHサーバーとあなたを、より確かにつなぐTASTEZIPより速くまとめ、より安全にひらくTASTEWINM2つの画面で整理する、キーボード中心のファイルマネージャー

開発ツール

TASTECODERust アプリの編集・ビルド・デバッグ・テストまでひとつのウィンドウでTASTESTUDIO編集からリモートテスト、承認した AI 修正までTASTEETL値を見ながら、データを運ぶ

サーバー

TASTEREMOTE自社サーバーで運用するリモートデスクトップTASTEGEOGeoServer 互換の空間情報サーバーを Rust で作り直しますTASTEMAILメールの主導権を、もう一度自分の手に

投資

TASTESTOCKいつ・何を。自分で決めたルールどおりに動く株式自動売買

はじめる

ダウンロード全製品の最新版ドキュメント各製品の使い方購入サブスクリプション・永久ライセンスすべての製品全製品を一覧で
すべての製品
マーケットプレイスニュース
技術

ニュース

今日の開発ニュース言語・フレームワーク・GitHub・AI の公式発表開発ドキュメント言語・フレームワーク・アルゴリズムのガイド

プログラミング言語

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

フレームワーク

Webフロントエンド フレームワークNext.jsReactVue.js · NuxtSvelteKitAngular
サーバー フレームワークSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
アプリ・デスクトップ フレームワークTauriFlutterReact NativeElectron

アルゴリズム

アルゴリズムの基礎計算量解析 · ソート · 探索 · 基本データ構造 · 木構造とヒープ主要アルゴリズムグラフ探索 · 最短経路と最小全域木 · 動的計画法 · 貪欲法 · 分割統治法 · バックトラッキング発展アルゴリズム文字列アルゴリズム · 数学と整数論 · ビット演算 · セグメント木 · Union-Find実務のアルゴリズムコーディング面接対策 · LRUキャッシュ · レート制限 · コンシステントハッシュ法
開発ドキュメントをすべて見る
コミュニティ
プロジェクトビルダーと作品を探す開発ログ決定と試行錯誤プロンプト再利用できる指示AIツールの問題Claude・Codex・Gemini の問題と回避策ショーケース完成した成果コミュニティガイドオープンにつくる方法
協業
技術移転Rust・egui でネイティブアプリを作るウェブサイト構築10言語、アカウント、ドキュメントとダウンロードデスクトップアプリ構築Rust・egui、WebView なしリリース・決済パイプライン署名・MSI・deb・rpm・AppImage・ハッシュ販売パートナー紹介して決済額の30%お問い合わせ構築・提携・投資のご相談
サービス
リモートデスクトップブラウザから自分のパソコンへインストールパッケージのカスタマイズ必要な機能だけ、設定は事前に
購入
JA
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
ログイン
ログイン
TASTEDEV

小さなツールから、より良い開発へ。

support@tastedev.netTASTEDEVを支援
製品製品ラインナップ購入ドキュメントダウンロードマーケットプレイスサポート
コミュニティプロジェクト開発ログプロンプトAIツールの問題ショーケース
ポリシー会社概要プライバシーポリシー利用規約サブスクリプション規約返金ポリシーコミュニティガイドライン
アカウントログイン新規登録
訪問者
今日
昨日
累計閲覧
商号
GXSOFT
代表者
CHOI YOUNG GU
事業者登録番号
853-44-00368
所在地
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
電話
+82-10-4404-1523
メール
whitecalvin@tastedev.net
個人情報保護責任者
CHOI YOUNG GU

© 2026 TASTEDEV製品情報は検証済みの開発ソースに基づいています。リリース・改善中

Vue.js · Nuxt ドキュメント
Vue.js · Nuxt
Getting Started with Vue and NuxtProject StructureCore Concepts: SFCs, Reactivity, Components, Nuxt RoutingData and StateTestingBuild and Deployment
ディスカッション

Vue.js · Nuxt ガイド · 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 are exposed to client code, as in .

この章について質問がありますか?
前の章Getting Started with Vue and Nuxt次の章Core 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件

人気のコメント順新しい順

ログイン · ログインするとコメントできます。