Skip to content

rong3000/ercMeta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Metadata API for ERC1155.online

About

This is a Python Flask app for serving the ERC721/ERC1155 metadata for ERC721/ERC1155 contracts.

Requirements

Python 3

You'll need a machine with Python 3 installed.

Google Cloud Storage

You'll need a Google Cloud Storage account with a project, bucket, and credentials.

Setup

Create a .env file with the following:

export GOOGLE_STORAGE_PROJECT="<your_project>"
export GOOGLE_STORAGE_BUCKET="<your_bucket>"

Place your Google cloud storage credentials in a file called credentials/google-storage-credentials.json.

Create a virtualenv with Python3 and run pip install -r requirements.txt.

Running

Run the API with python app.py and hit http://localhost:5000/api/creature/1

Deploying

To deploy on Heroku, set the GOOGLE_STORAGE_PROJECT and GOOGLE_STORAGE_BUCKET environment variables on your Heroku instance and deploy by pushing to your Heroku remote.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors