Skip to content

A blockchain application for tracking carbon emissions and offsets

Notifications You must be signed in to change notification settings

yannvr/carbon-watch

Repository files navigation

Carbon Watch

A blockchain-based application for tracking and managing household carbon emissions on the Celo blockchain.

Overview

Carbon Watch is a smart contract deployed on the Celo Alfajores testnet that allows users to:

  • Log household electricity, water, gas, fuel usage, waste generation, and vehicle distance
  • Automatically calculate carbon emissions based on usage metrics
  • Track historical carbon footprint data

Testnet Contract

The smart contract is deployed on the Celo Alfajores testnet:

Getting Started

Prerequisites

  • Bun (v1.1.12 or later)
  • Node.js (v16 or later)

Installation

# Clone the repository
git clone https://github.com/yourusername/carbon-watch.git
cd carbon-watch

# Install dependencies
bun install

Development

# Start the development server with hot reloading
bun run dev

# Run the application
bun run start

Smart Contract Development

# Compile the smart contract
bun run compile

# Deploy to network (configured in truffle-config.js)
bun run migrate

# Run tests
bun run test

Environment Variables

Create a .env file in the project root with the following variables:

MNEMONIC=your_mnemonic_phrase_here
INFURA_KEY=your_infura_key_here

License

This project is licensed under the MIT License.

About

A blockchain application for tracking carbon emissions and offsets

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published