Skip to content

octocoach/octocoach

Repository files navigation

OctoCoach Logo

OctoCoach

A TypeScript-based platform for managing AZAV coaching businesses. This monorepo contains multiple applications and packages that work together to provide a comprehensive coaching management solution.

Project Structure

This is a monorepo managed with pnpm workspaces, containing:

Applications

  • apps/web: The main web application built with Next.js

    • Handles the primary user interface
    • Integrates with Daily.co for video functionality
    • Includes analytics and real-time features
    • Uses AI capabilities through OpenAI integration
  • apps/video: Video generation service

    • Built with Remotion for programmatic video creation
    • Includes support for animations and transitions
    • Integrates with AI services for content generation

Packages (Shared Libraries)

The repository includes several shared packages that are used across applications:

Development Setup

Prerequisites

That's it! All other dependencies (Node.js, pnpm, etc.) are handled within the development container.

Development Environment

The project uses DevContainers for a consistent development environment. The setup includes:

  1. Three main services:

    • app: Main application container
    • db: PostgreSQL database
    • db_proxy: WebSocket proxy for database connections
  2. Exposed ports:

    • 3000: Web application
    • 5433: Database WebSocket proxy
    • 6432: PostgreSQL database

Getting Started

  1. Clone the repository:
git clone https://github.com/octocoach/octocoach.git
  1. Open in VS Code:
code octocoach
  1. When prompted, click "Reopen in Container", or:
    • Press F1 or Ctrl/Cmd + Shift + P
    • Type "Dev Containers: Reopen in Container"
    • Press Enter

The container will automatically:

  • Set up the development environment
  • Install all dependencies
  • Configure the database
  • Prepare the development servers

To learn more about working with Dev Containers, see the official documentation.

Starting the Development Server

Once the container is ready:

pnpm dev

Included VS Code Extensions

The development container comes pre-configured with:

  • Prettier for code formatting
  • Docker tools
  • SQL Tools with PostgreSQL support
  • TypeScript error highlighting

Scripts

  • pnpm dev: Start all applications in development mode
  • pnpm build: Build all applications and packages
  • pnpm lint: Run linting across all projects
  • pnpm format: Format all files using Prettier
  • pnpm test: Run tests using Vitest

Technical Stack

  • Frontend: Next.js, React
  • Backend: Node.js
  • Database: PostgreSQL
  • Video Processing: Remotion
  • AI Integration: OpenAI
  • Containerization: Docker
  • Package Management: pnpm

About

A platform for managing AZAV coaching businesses

Resources

Stars

Watchers

Forks

Languages