https://github.com/protocol/0004-fgtp-content-address-eacs-browser
Simple previewer for attestation documents and base data schema (DAG) objects related to Renewable Energy Certificates (RECs)
https://github.com/protocol/0004-fgtp-content-address-eacs-browser
Last synced: 6 months ago
JSON representation
Simple previewer for attestation documents and base data schema (DAG) objects related to Renewable Energy Certificates (RECs)
- Host: GitHub
- URL: https://github.com/protocol/0004-fgtp-content-address-eacs-browser
- Owner: protocol
- License: mit
- Created: 2022-05-03T12:03:25.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-02T10:41:38.000Z (about 3 years ago)
- Last Synced: 2024-12-29T08:40:45.275Z (over 1 year ago)
- Language: JavaScript
- Size: 450 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 0004-FGTP-Content-Address-EACs | EACs Browser
by [Momcilo Dzunic aka smartbee.eth](https://twitter.com/mdzunic)
Simple previewer for attestation documents and base data schema (DAG) objects related to Renewable Energy Certificates (RECs) -> [0004-FGTP-Content-Address-EACs](https://github.com/protocol/FilecoinGreen-tools/blob/main/0004-FGTP-Content-Address-EACs.md)
### Demo
[https://filecoin-green-eac-browser.dzunic.net/](https://filecoin-green-eac-browser.dzunic.net/)
### Use
Open-source [PDF.js](https://mozilla.github.io/pdf.js/) library is integrated into our project to render a PDF inside our app. After downloading the [latest stable release](https://mozilla.github.io/pdf.js/getting_started/#download) and then extracting the contents,
make sure `libs` folder is available in root directory of your project. Also, make sure your hosting address is added to `HOSTED_VIEWER_ORIGINS` in `viewer.js` file.
const HOSTED_VIEWER_ORIGINS = ["null", "http://mozilla.github.io", "https://mozilla.github.io", "https://localhost:3000", "http://localhost:3000"];
You would also need an running IPFS node to attach to since this app is using `ipfs-http-client` lib.
Thereafter run any of scripts defined in `package.json`
// clean dist
npm run clean
// build for production
npm run build
// run dev server with hot reload
npm run start
### ToDo
1. Crosscheck ZL source data against csv sources [here](https://github.com/redransil/filecoin-renewables-purchases/tree/main/20210831_delivery) and [here](https://github.com/redransil/filecoin-renewables-purchases/tree/main/20211231_3D_delivery)
2. Attestation documents lazy loading
3. Attestation documents filtering
4. Direct link to specific Attestation document
### License
Licensed under the MIT license.
http://www.opensource.org/licenses/mit-license.php