Skip to content

Open-Earth-Foundation/cc-poc-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CityCatalyst Integration Template

A comprehensive proof-of-concept template for building climate action applications that integrate with CityCatalyst's data platform.

🎯 Purpose

This template is designed for remixing and adaptation to specific climate action use cases. When you remix this project, define your specific use case and adapt the template accordingly.

🌟 What This Template Demonstrates

  • Complete OAuth 2.0 PKCE Authentication with CityCatalyst
  • City Emissions Inventory Data with GPC sector breakdowns
  • Climate Change Risk Assessment (CCRA) visualization
  • Health Impact Assessment Policy (HIAP) action recommendations
  • Comprehensive API Documentation for future remixes
  • Modular Architecture for easy customization

🚀 Quick Start

1. Remix This Template

  • Click "Fork" or "Remix" on Replit
  • Or clone locally: git clone <this-repository>

2. Define Your Use Case

Choose what you want to build:

  • 📊 Municipal Carbon Tracking Dashboard
  • ⚠️ Climate Risk Assessment Tool
  • 🎯 Policy Planning Application
  • 📈 Emissions Monitoring Platform
  • 🔄 Climate Action Progress Tracker

3. Customize the Template

  • Remove features you don't need
  • Enhance features relevant to your use case
  • Adapt the UI to your requirements
  • Update documentation to reflect your purpose

📚 Documentation

🏗️ Architecture

  • Frontend: React + TypeScript + Tailwind CSS + shadcn/ui
  • Backend: Express.js + TypeScript
  • Authentication: OAuth 2.0 PKCE with CityCatalyst
  • State Management: TanStack Query for server state
  • Maps: Leaflet for boundary visualization
  • Database: PostgreSQL with Drizzle ORM

🔧 Environment Setup

Required environment variables:

# CityCatalyst OAuth
CLIENT_ID=your_citycatalyst_client_id
CLIENT_SECRET=your_citycatalyst_client_secret
AUTH_BASE_URL=https://citycatalyst.openearth.dev

# Application
NODE_ENV=development
SESSION_SECRET=your-session-secret

🎨 Example Use Cases

Carbon Tracking Dashboard

Keep inventory data, remove CCRA/HIAP features, add custom emissions tracking charts.

Climate Risk Tool

Focus on CCRA data, remove inventory details, add risk scoring and mapping features.

Policy Planning App

Emphasize HIAP recommendations, add action tracking and progress monitoring.

📖 Learn More


Ready to build your climate action application? Start by defining your specific use case, then adapt this template to your needs!

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages