Skip to content

Commit 3a73c64

Browse files
Merge pull request #1087 from Green-Software-Foundation/docs
Add enablement.md file
2 parents ae044f0 + a30773e commit 3a73c64

File tree

2 files changed

+116
-7
lines changed

2 files changed

+116
-7
lines changed

ENABLEMENT.md

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
# Enablement Guide for Impact Framework (IF)
2+
3+
## What is the Impact Framework?
4+
5+
The **Impact Framework (IF)** empowers you to calculate and understand the environmental impact of your software. It comes with a standard library of built-in plugins, referred to as builtins, and an Explorer for discovering and installing third-party plugins.
6+
7+
## How to Use the Impact Framework?
8+
9+
### Prerequisites
10+
11+
Before getting started, ensure you have the following:
12+
13+
1. **Node.js**: Installed and configured.
14+
2. **NPM**: Comes with Node.js; ensure it’s updated.
15+
3. **Access to Documentation**: Familiarize yourself with the [IF documentation](https://if.greensoftware.foundation/).
16+
4. **Basic YAML Knowledge**: For creating and managing manifest files.
17+
18+
## Steps to Enable the Impact Framework
19+
20+
### Step 1: Installation
21+
22+
Install the latest version of IF globally using NPM:
23+
24+
```sh
25+
npm install -g "@grnsft/if"
26+
```
27+
28+
`IF` provides multiple command-line tools, with the primary tool being `if-run`.
29+
30+
### Step 2: Working with Command-Line Tools
31+
32+
1. `if-run`: Execute Manifest Files
33+
34+
- Description: Executes manifest files to calculate impact.
35+
- Manifest File: A YAML file central to IF functionality. It contains configurations, application architecture, input data, and serves as a portable, shareable, human-readable document for audits.
36+
- Usage:
37+
38+
```sh
39+
if-run --manifest <path-to-your-manifest-file>
40+
```
41+
42+
More about if-run [here](https://if.greensoftware.foundation/reference/cli#if-run).
43+
44+
2. `if-env`: Create Local Development Environments
45+
46+
- Description: Sets up a local environment for running manifests.
47+
- Usage:
48+
49+
```sh
50+
mkdir my-manifest && cd my-manifest
51+
if-env
52+
```
53+
54+
Find details in the [documentation](https://if.greensoftware.foundation/reference/cli#if-env).
55+
56+
3. `if-check`: Verify Manifests
57+
58+
- Description: Combines the functionalities of if-env and if-diff to verify manifest files with outputs and execution sections.
59+
- Usage:
60+
61+
```sh
62+
# Check a specific manifest file
63+
if-check -m <path-to-your-manifest-file>
64+
65+
# Check all manifests in a directory
66+
if-check -d /path-to-your-manifests
67+
```
68+
69+
Explore more in the [documentation](https://if.greensoftware.foundation/reference/cli#if-check).
70+
71+
4. `if-csv`: Save Data to CSV
72+
73+
- Description: Saves calculated impact data to a CSV file.
74+
- Usage:
75+
76+
```sh
77+
if-csv -m ./my-manifest.yml -p carbon
78+
```
79+
80+
Read more in the [documentation](https://if.greensoftware.foundation/reference/cli#if-csv).
81+
82+
5. `if-diff`: Compare Manifests or Outputs
83+
84+
- Description: Compares two manifest or output files to identify differences.
85+
- Usage:
86+
87+
```sh
88+
if-diff <file1> <file2>
89+
```
90+
91+
Details are available in the [documentation](https://if.greensoftware.foundation/reference/cli#if-diff).
92+
93+
### Step 3: Explore Plugins
94+
95+
- Built-In Plugins: Utilize IF’s built-ins for common environmental impact assessments.
96+
- Third-Party Plugins: Visit the Explorer to discover and install third-party plugins tailored to your needs.
97+
98+
### Step 4: Help and Guidance
99+
100+
For assistance with any command, use the --help flag:
101+
102+
```sh
103+
if-run --help
104+
```
105+
106+
## Additional Resources
107+
108+
- Documentation: [IF Documentation](https://if.greensoftware.foundation)
109+
- Third-Party Plugins: [Plugin Explorer](https://explorer.if.greensoftware.foundation)
110+
111+
## Support
112+
113+
Join the IF Community for updates and discussions:
114+
115+
- Mailing List: [if-community@greensoftware.foundation](https://groups.google.com/u/1/a/greensoftware.foundation/g/if-community)

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Node.js CI](https://github.com/Green-Software-Foundation/if/actions/workflows/nodejs-ci.yml/badge.svg)](https://github.com/Green-Software-Foundation/if/actions/workflows/nodejs-ci.yml)
44

55
> [!IMPORTANT]
6-
> Graduated Project This project is a Graduated Project, supported by the Green Software Foundation. The publicly available version documented in the README is trusted by the GSF. New versions of the project may be released, or it may move to the Maintained or Retired Stage at any moment.
6+
> Incubation Project: This project is an incubation project being run inside the Green Software Foundation; as such, we DON’T recommend using it in any critical use case. Incubation projects are experimental, offer no support guarantee, have minimal governance and process, and may be retired at any moment. This project may one day Graduate, in which case this disclaimer will be removed.
77
88
**Our documentation is online at [if.greensoftware.foundation](https://if.greensoftware.foundation/)**
99

@@ -64,12 +64,6 @@ if-run -h
6464

6565
Please read our documentation at [if.greensoftware.foundation](https://if.greensoftware.foundation/)
6666

67-
## Video walk-through
68-
69-
Watch this video to learn how to create and run a `manifest`.
70-
71-
[![Watch the walk-through video](https://i3.ytimg.com/vi/R-6eDM8AsvY/maxresdefault.jpg)](https://youtu.be/GW37Qd4AQbU)
72-
7367
## Join our mailing list
7468

7569
We have a public mailing list at [if-community@greensoftware.foundation](https://groups.google.com/u/1/a/greensoftware.foundation/g/if-community). We send out weekly updates that explain what we've shipped, what we're working on and how you can get involved each week!

0 commit comments

Comments
 (0)