Frontend application for the Exocore staking platform, built with Next.js, React, and TypeScript.
- Node.js 20.x or later
- pnpm (recommended) or npm/yarn
# Install dependencies
pnpm install
# Or using Make
make install# Start development server
pnpm dev
# Or using Make
make devOpen http://localhost:3000 with your browser to see the result.
pnpm dev- Start development serverpnpm build- Build for production (Vercel)pnpm build:local- Build locally (with forge compile)pnpm start- Start production serverpnpm lint- Run ESLintpnpm test- Run unit testspnpm test:watch- Run unit tests in watch modepnpm test:coverage- Run unit tests with coveragepnpm test:e2e- Run E2E testspnpm test:e2e:ui- Run E2E tests with UI
See make help or run make without arguments for all available targets.
Common commands:
make ci- Run all CI checks (lint, type-check, test, build)make test- Run unit testsmake test-coverage- Run unit tests with coveragemake e2e- Run E2E testsmake clean- Clean build artifacts
Unit tests use Vitest and are located alongside source files with .test.ts or .test.tsx extensions.
# Run all tests
pnpm test
# Run in watch mode
pnpm test:watch
# Run with coverage
pnpm test:coverageE2E tests use Playwright and are located in the e2e/ directory.
# Run E2E tests (requires dev server running)
pnpm test:e2e
# Run with UI
pnpm test:e2e:ui
# Install Playwright browsers (first time)
pnpm exec playwright install chromiumThis project uses GitHub Actions for continuous integration. See docs/ci-cd.md for detailed information.
Quick CI check locally:
make ciWorkflows:
- CI - Runs on every push/PR (lint, type-check, unit tests, build, E2E)
- PR Checks - Lightweight checks for pull requests
- Code Quality - Comprehensive checks with coverage reporting
exocore-frontend/
├── app/ # Next.js app directory
├── components/ # React components
├── hooks/ # Custom React hooks
├── lib/ # Utility libraries
├── stores/ # State management (Zustand)
├── types/ # TypeScript type definitions
├── config/ # Configuration files
├── e2e/ # E2E tests (Playwright)
├── docs/ # Documentation
└── .github/ # GitHub Actions workflows
- CI/CD Guide - CI/CD pipelines and local testing
- Testing Guide - Testing strategy and best practices
- Frontend Specs - Frontend architecture and specifications
The application is deployed on Vercel. See Next.js deployment documentation for details.