Local Development Setup
Get your ApiTraffic development environment running locally.Prerequisites
- Node.js (v18+ recommended)
- npm or yarn
- Git
- Docker (optional, for containerized development)
Installation
- Clone the repository:
- Install dependencies:
Development Options
Option 1: Full npm Development (Recommended)
Run all services locally with npm for maximum development speed:Option 2: Docker Development
Run all services in Docker with volume mounts for live reloading:Environment Configuration
Create your local environment file:.env.local
Available Scripts
npm run dev- Start all services in development modenpm run local- Start all services with local configurationnpm run build- Build all applicationsnpm run test- Run testsnpm run lint- Lint the codebasenpm run format- Format code using Prettier
Project Structure
Making Changes
- Create a new branch for your feature
- Make your changes
- Run tests:
npm test - Run linting:
npm run lint - Submit a pull request
Debugging
For VS Code debugging, use the provided launch configurations in.vscode/launch.json.