Pollution Poll: Increasing climate change awareness by visualizing portions of a user's carbon footprint.
Installing this project. (Ensure you have downloaded pollution-poll-server and started it) https://github.com/jluter/pollution-poll-server
git clone https://github.com/jluter/pollution-poll
npm install
npm start
GET /localhost:4444/activity
Type | Description |
---|---|
array |
An array of all activities |
POST https://beta3.api.climatiq.io/batch
Parameter | Type | Description |
---|---|---|
emission_factor |
string |
Required. Id or activity name of item to fetch |
money |
number |
Required. Value to receive response |
money_id |
string |
Required. Type of measurment for money |
.post(
"https://beta3.api.climatiq.io/batch",
[
{
emission_factor: {
uuid: //EXAMPLE_ID,
},
parameters: {
money: //EXAMPLE_NUMBER,
money_unit: "usd",
}
},
{
emission_factor: {
uuid: "1eed671c-7e3d-44e2-85f5-57dc86372cea",
},
parameters: {
money: 100,
money_unit: "usd",
}
}
],
{
headers: { Authorization: "Bearer YOUR_API_KEY_HERE" },
}
- Responsive Design
Client: React, Sass, JavaScript, HTML, CSS, Axios
Server: Node, Express
API: Climatiq