Prerequisites
Before installing the Service Orders Management System, ensure you have the following:Node.js
Node.js 18.x or higher (LTS version recommended)
Package Manager
npm, pnpm, yarn, or bun
Backend API
Running backend service (default: http://localhost:8000/api/)
Git
Git for cloning the repository
Check your Node.js version with
node --version. The application is built with Nuxt 3, which requires Node.js 18.x or later.Installation Steps
1. Clone the Repository
First, clone the project repository to your local machine:2. Install Dependencies
Install all required dependencies using your preferred package manager:package.json:
package.json
Key Dependencies Explained
The Service Orders Management System relies on several essential dependencies:Core Framework
- Nuxt 3 (
^3.16.1) - The Vue.js framework providing SSR, routing, and auto-imports - Vue 3 (
^3.5.13) - The progressive JavaScript framework with Composition API - Vue Router (
^4.5.0) - Official router for Vue.js applications
State Management & Data
- Pinia (
^3.0.2) - Official state management library for Vue - @pinia/nuxt (
^0.11.0) - Nuxt module for seamless Pinia integration - Axios (
^1.9.0) - Promise-based HTTP client for API requests
UI & Styling
- Bootstrap (
^5.3.3) - CSS framework for responsive, mobile-first design - @nuxt/ui (
^3.0.2) - Pre-built UI components for Nuxt applications - @nuxt/icon (
^1.11.0) - Icon component with multiple icon sets - @fortawesome/vue-fontawesome (
^3.0.8) - Font Awesome icon integration for Vue
Additional Modules
- @nuxt/content (
^3.4.0) - File-based CMS for Nuxt - @nuxt/image (
^1.10.0) - Image optimization and transformation - @nuxt/fonts (
^0.11.0) - Font optimization and loading - TypeScript (
^5.8.2) - Type-safe JavaScript
Post-Installation Setup
Automatic Setup
After running the installation command, thepostinstall script automatically executes:
package.json
nuxt prepare command:
- Generates TypeScript type definitions
- Sets up auto-import configurations
- Prepares the
.nuxtdirectory with build artifacts
Manual Preparation (if needed)
If you need to re-run the preparation step manually:Configuration
Nuxt Configuration
The application is configured innuxt.config.ts:
nuxt.config.ts
Environment Variables
You can override the API base URL using environment variables:.env
Verify Installation
After installation, verify everything is set up correctly:- Check for the
.nuxtdirectory - Created bynuxt prepare - Verify
node_modulesfolder - Contains all installed dependencies - Run the development server:
- Access the application at
http://localhost:3000
If you encounter any issues, try deleting
node_modules and the .nuxt directory, then run the installation again.Build for Production
When you’re ready to build for production:.output directory.
Next Steps
Quickstart Guide
Follow the quickstart to run your first service order
Project Structure
Learn about the codebase organization
API Integration
Configure and use the API client
Deployment
Deploy your application to production
Troubleshooting
Common Issues
Module not found errors- Verify your backend API is running
- Check the
apiBaseUrlinnuxt.config.ts - Ensure CORS is properly configured on your backend