Dashpub Documentation

Comprehensive documentation for Dashpub - A modern Splunk dashboard publishing system

Development Guide

Complete guide for developers working on Dashpub.

Quick Start

# Clone the repository
git clone <repository-url>
cd dashpub-v2-testing

# Install dependencies
npm install

# Start development servers
cd app
npm run dev:full

Development Setup

Prerequisites

Project Structure

dashpub-v2-testing/
├── cli/              # CLI tool for initialization
├── template/         # Template files (copied to app/)
├── app/              # Generated application
├── docs/             # Documentation
└── docker/           # Docker configuration

Development Workflow

  1. Make changes in template/ directory
  2. Test locally using npm run dev:full
  3. Run tests with npm test
  4. Commit changes to git

Key Documentation

Development Commands

Frontend Development

# Start Vite dev server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

Backend Development

# Start Express server
npm run server

# Run with nodemon (auto-reload)
npx nodemon server.js

Full Stack Development

# Start both servers
npm run dev:full

Code Style

JavaScript/React

File Naming

Testing

Run Tests

# Unit tests
npm run test

# E2E tests
npm run test:e2e

# With coverage
npm run test:coverage

Test Structure

tests/
├── dashboard.spec.ts    # Dashboard E2E tests
└── smoke.spec.ts        # Smoke tests

Debugging

Enable Debug Logging

DEBUG=* npm run dev:full

Browser DevTools

Server Logs

# View server logs
tail -f logs/app.log

# Check cache stats
curl http://localhost:3000/api/cache/stats

Contributing

Pull Request Process

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests
  5. Submit pull request

Code Review Checklist