An open API service indexing awesome lists of open source software.

https://github.com/steppsr/indexify

Bash script to create a general purpose NFT Gallery for Datalayer NFT collection on the Chia Blockchain. Or really any NFT collection in a source folder.
https://github.com/steppsr/indexify

bash chia chia-blockchain html javascript nft

Last synced: 2 months ago
JSON representation

Bash script to create a general purpose NFT Gallery for Datalayer NFT collection on the Chia Blockchain. Or really any NFT collection in a source folder.

Awesome Lists containing this project

README

        

# indexify
Bash script to create a general purpose NFT Gallery for Datalayer NFT collection on the Chia Blockchain. _Or really any NFT collection in a source folder._

Note: the script is slow. The more NFTs the longer it takes. But, it's also a run-once and done script so just be patient. I do write output to the screen to show progress along the way.

---

### Prerequisites
* jq
* tr
* curl

---

### Parameters
Parameter 1 must be the folder with the NFT files. i.e. `./build` or `./public_html`

---

### Example of basic folder structure for collection
```
build
├─ images
├─ 01.png
└─ 02.png
├─ metadata
├─ 01.json
└─ 02.json
├─ icon.png
├─ banner.png
└─ license.md
```

* Assumption 1 - contains a subfolder named `images` containing all the images of the NFTs.
* Assumption 2 - contains a subfolder named `metadata` containing all the JSON files for the metadata of the NFTs.
* Assumption 3 - contains an image named `icon.png`, `icon.jpg`, or `icon.gif` containing the icon for the collection.
* Assumption 4 - contains an image named `banner.png`, `banner.jpg`, or `banner.gif` containing the banner for the collection.
* Assumption 5 - contains a file named `license.md`, `license.pdf`, or `license.txt` contain the license for the collection.

---

* Note 1 - The Collection data will be pulled from the first metadata file in the `metadata` folder.
* Note 2 - Output will be a file named `index.html` in the build_folder.

---

# USAGE

`bash make_gallery.sh /path/to/`

Real Example:

```
bash make_gallery.sh ./BattleKats/build
```

---

### Screenshot example
![Creepers example](example.png "Creepers example")