Project Structure
Explore the ShipAhead Nuxt project structure, including pages, components, server routes, and shared code, so you can find files and customize your app.
app/: Core application logic.app.vue: Main app component, defining the root layout.app.config.ts: Global app configuration, including colors and Nuxt UI component classes used across the project.components/: Reusable Vue components (e.g., buttons, modals).composables/: Reusable logic functions (e.g.,useSeo.tsfor SEO).middleware/: Route-specific middleware (e.g., authentication checks).pages/: Defines routes using file-based routing (e.g.,app/pages/about.vuecreates/about).plugins/: Nuxt plugins for extended functionality (e.g., analytics).error.vue: Custom error page, any unexpected error will go to this page.
layouts/: Custom layouts for pages (e.g.,layouts/default.vue).server/: API routes and middleware for server-side logic.public/: Static assets like images, favicon, or fonts (e.g.,public/images/logo.png).shared/: Shared configuration files (e.g.,shared/config.tsfor app settings).locales/: Language files for internationalization (e.g.,locales/en.json).content/: Markdown or CMS content used by Nuxt Content (e.g., blog posts, docs).
Usage
- Navigate the Project: Use the folder structure to locate files for customization (e.g., edit
app/pages/index.vuefor the homepage). - Add Pages: Create new
.vuefiles inapp/pages/to add routes (e.g.,app/pages/contact.vuefor/contact). - Customize Components: Modify or add components in
components/for reusable UI elements. - Configure Settings: Update
shared/config.tsfor app-wide settings like SEO or branding.
Customer Support
Set up customer support in your ShipAhead app to help users in real time, collect feedback, and make it easier to respond to questions and issues.
Page Routes
Create and organize pages in your ShipAhead app using Nuxt file-based routing. Learn how page files map to URLs and how to add routes to your project.