Skip to content

CancerDAO Platform - AI-powered cancer prevention and treatment through blockchain and community-driven healthcare solutions

Notifications You must be signed in to change notification settings

chord233/CancerDAO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CancerDAO Platform

License: MIT Node.js React TypeScript

🌟 Overview

CancerDAO Platform is a revolutionary full-stack web application dedicated to cancer prevention and treatment through cutting-edge technology. Built with modern React frontend and Node.js backend, the platform combines AI-powered cancer prevention, blockchain-based medical data management, and community-driven healthcare solutions.

🎯 Key Features

  • πŸ€– AI-Powered Health Solutions: 9 specialized AI agents for comprehensive cancer care
  • πŸ”— Blockchain Data Management: Secure, decentralized medical data storage
  • 🌍 Bilingual Support: Full Chinese/English internationalization
  • πŸ‘₯ Community-Driven: Patient support and research collaboration
  • πŸ“± Responsive Design: Mobile-first approach with modern UI

πŸ—οΈ System Architecture

Frontend Stack

  • Framework: React 18 with TypeScript
  • Build Tool: Vite for fast development and optimized builds
  • UI Library: Tailwind CSS + shadcn/ui components
  • State Management: TanStack Query for server state
  • Routing: React Router for client-side navigation
  • Charts: Recharts for data visualization
  • Forms: React Hook Form with Zod validation

Backend Stack

  • Runtime: Node.js with Express.js
  • Database: PostgreSQL with Drizzle ORM
  • Session: PostgreSQL-backed sessions
  • Email: Nodemailer for notifications
  • Security: Helmet, CORS, Rate limiting

Development Tools

  • Language: TypeScript with strict configuration
  • Database: Drizzle Kit for migrations
  • Styling: PostCSS with Tailwind CSS
  • Package Manager: pnpm (recommended)

πŸš€ Quick Start

Prerequisites

  • Node.js 18+
  • pnpm (recommended) or npm
  • PostgreSQL database (optional for development)

Installation

  1. Clone the repository

    git clone https://github.com/chord233/CancerDAO.git
    cd CancerDAO
  2. Install dependencies

    pnpm install
  3. Environment setup

    cp .env.example .env
    # Edit .env with your configuration
  4. Database setup (optional)

    pnpm db:push
  5. Start development server

    pnpm dev

    The application will be available at http://localhost:5000

Available Scripts

pnpm dev      # Start development server
pnpm build    # Build for production
pnpm start    # Start production server
pnpm check    # Type checking
pnpm db:push  # Push database schema

πŸ“ Project Structure

CancerDAO/
β”œβ”€β”€ client/                 # Frontend React application
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ components/     # Reusable UI components
β”‚   β”‚   β”œβ”€β”€ pages/         # Page components
β”‚   β”‚   β”œβ”€β”€ contexts/      # React contexts
β”‚   β”‚   β”œβ”€β”€ hooks/         # Custom hooks
β”‚   β”‚   └── lib/           # Utility functions
β”‚   └── public/            # Static assets
β”œβ”€β”€ server/                # Backend Express application
β”‚   β”œβ”€β”€ handlers/          # Route handlers
β”‚   β”œβ”€β”€ utils/             # Server utilities
β”‚   └── index.ts           # Server entry point
β”œβ”€β”€ shared/                # Shared types and schemas
└── Figma/                 # Design assets

🎨 Design System

Color Palette

The platform uses a strict color palette:

  • Primary Purple: #e7d1ff, #c9a4ff
  • Accent Yellow: #fad000
  • Accent Red: #fc593d
  • Base: Black and white

Components

  • Built on Radix UI primitives for accessibility
  • Consistent design tokens across all components
  • Mobile-first responsive design

πŸ€– AI Agent Matrix

The platform features 9 specialized AI agents:

  1. Report Bot - Medical report analysis
  2. Trial Bot - Clinical trial matching
  3. Clinical Bot - Clinical decision support
  4. Content Bot - Educational content generation
  5. Longevity Bot - Longevity and prevention
  6. Health Bot - General health guidance
  7. AMA Bot - Ask Me Anything support
  8. Research Bot - Research assistance
  9. Support Bot - Patient support

🌐 Internationalization

The platform supports full bilingual operation:

  • Languages: Chinese (Simplified) and English
  • Coverage: All UI text, content, and documentation
  • Implementation: Custom language context with React

πŸ”§ Configuration

Environment Variables

NODE_ENV=development
DATABASE_URL=your_postgresql_url
SESSION_SECRET=your_session_secret
EMAIL_HOST=your_email_host
EMAIL_USER=your_email_user
EMAIL_PASS=your_email_password

Database Schema

The application uses Drizzle ORM with PostgreSQL:

  • Subscribers: Newsletter email management
  • Contact Messages: User inquiries and partnerships
  • Sessions: User session management

πŸš€ Deployment

Production Build

pnpm build
pnpm start

Docker Deployment

# Dockerfile example
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 5000
CMD ["npm", "start"]

🀝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Workflow

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

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘₯ Team

  • Michael Yang - Founder & CEO
  • YoSean Wang - Co-founder & CTO
  • Zhiwei Bao - Co-founder & Head of Research

πŸ“ž Contact

πŸ”— Links


Built with ❀️ for the global cancer prevention community

About

CancerDAO Platform - AI-powered cancer prevention and treatment through blockchain and community-driven healthcare solutions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages