Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/how-to/agent-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Here's what you need to know to navigate and contribute effectively.
- Visualizes emission data from CSV files
- Run with: `uv run task carbonboard`

4. **🌐 webapp/** - Next.js Web Dashboard
- Modern React/Next.js web application
4. **🌐 webapp/** - Web Dashboard
- Modern React web application
- Connects to the API backend
- Run with: `cd webapp && pnpm dev`

Expand Down Expand Up @@ -83,7 +83,7 @@ Here's what you need to know to navigate and contribute effectively.
# Python dashboard
uv run task carbonboard

# Next.js webapp
# Js webapp
cd webapp
pnpm install
pnpm dev
Expand Down Expand Up @@ -122,7 +122,7 @@ Here's what you need to know to navigate and contribute effectively.

### Dashboard Development
1. **Python Dashboard**: Uses Dash + Plotly, see `codecarbon/viz`
2. **Next.js Dashboard**: Modern React components in `webapp/src/`
2. **React Dashboard**: Modern React components in `webapp/src/`
3. **Connect to API**: Set `CODECARBON_API_URL=http://localhost:8008` for local development

## Environment Management
Expand Down Expand Up @@ -155,7 +155,7 @@ uv run task -l
- **[CONTRIBUTING.md](https://docs.codecarbon.io/latest/how-to/contributing/)**: Detailed contribution guidelines and setup
- **[README.md](https://github.com/mlco2/codecarbon/blob/master/README.md)**: Project overview and quickstart
- **[carbonserver/README.md](https://github.com/mlco2/codecarbon/blob/master/carbonserver/README.md)**: API architecture and database schema
- **[webapp/README.md](https://github.com/mlco2/codecarbon/blob/master/webapp/README.md)**: Next.js dashboard setup
- **[webapp/README.md](https://github.com/mlco2/codecarbon/blob/master/webapp/README.md)**: React dashboard setup
- **[carbonserver/tests/TESTING.md](https://github.com/mlco2/codecarbon/blob/master/carbonserver/tests/TESTING.md)**: Comprehensive testing guide

### VS Code Debugging
Expand All @@ -177,7 +177,7 @@ The repository includes VS Code launch configurations in `docs/how-to/contributi
β”‚ (package) │───▢│ (API) │◀───│ (2 versions) β”‚
β”‚ β”‚ β”‚ β”‚ β”‚ β”‚
β”‚ β€’ CLI tools β”‚ β”‚ β€’ FastAPI β”‚ β”‚ β€’ Dash (Python) β”‚
β”‚ β€’ Tracking core β”‚ β”‚ β€’ PostgreSQL β”‚ β”‚ β€’ Next.js (Web) β”‚
β”‚ β€’ Tracking core β”‚ β”‚ β€’ PostgreSQL β”‚ β”‚ β€’ React (Web) β”‚
β”‚ β€’ Data output β”‚ β”‚ β€’ Authenticationβ”‚ β”‚ β€’ Visualization β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```
Expand Down
13 changes: 3 additions & 10 deletions webapp/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Next.js Code Carbon Web Application Project
# Code Carbon Web Application Project

Welcome to the Code Carbon Next.js Project! This README will guide you through the process of setting up and running the project on your local machine.
Welcome to the Code Carbon Project! This README will guide you through the process of setting up and running the project on your local machine.

## Prerequisites

Expand Down Expand Up @@ -53,11 +53,4 @@ In the project directory, you can run:
- `pnpm dev`: Runs the app in development mode
- `pnpm build`: Builds the app for production
- `pnpm start`: Runs the built app in production mode
- `pnpm lint`: Runs the linter to check for code style issues

## Learn More

To learn more about Next.js, check out the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
- `pnpm lint`: Runs the linter to check for code style issues
Loading