Skip to content

Getting Started

This guide walks you through the initial setup to run the Envia Admin platform locally.

Prerequisites

RequirementVersion
Node.js18.x (backend) / 22.x (frontend)
npm10.x+
PHP8.1+ with Composer
MySQL5.7+ or 8.x
Redis6.x+

TIP

Use nvm to manage multiple Node.js versions across the monorepo projects.

Clone the Repository

bash
git clone <repository-url>
cd admon-monorepo

Backend Setup

bash
cd backend
cp .env.example .env   # configure your environment variables
npm install
npm run dev             # starts the API with nodemon

The API starts on the port defined in your .env file.

Frontend Setup

Vue Client

bash
cd frontend
npm install
npm run dev             # starts the Vite dev server

PHP Server

bash
cd frontend
composer install
php spark serve         # starts the CodeIgniter dev server

Available Scripts

Backend

ScriptDescription
npm run devStart the API in development mode (nodemon)
npm test --directory=<folder>Run tests for a specific directory
npm run lintCheck code style with ESLint
npm run lint:fixAuto-fix ESLint issues
npm run formatCheck formatting with Prettier
npm run format:fixAuto-format with Prettier

Frontend

ScriptDescription
npm run devStart the Vue app with Vite
npm run buildBuild the Vue app for production
npm run previewPreview the production build locally
npm run lintCheck code style with ESLint
npm run lint:fixAuto-fix ESLint issues
npm run formatCheck formatting with Prettier
npm run format:fixAuto-format with Prettier

Next Steps

Once the platform is running locally, explore the Technical Architecture to understand the codebase structure.

Envia Admin