Closed
Conversation
Closed
remove server-only props and routes
Contributor
Collaborator
Author
|
It's not totally related to IPFS but it helps us move through testing to tweak and fix a few things along the way. This last patch I changed "undefined" to "Default category" here and allowed customizing the asset value. I did see a successful upload to IPFS and then another failure so I will need to refine how it's done in the next patch. |
logging changed from console.log to console.error for errors
Collaborator
Author
|
I'm going to shelve this one for a minimal change to make this work then we can go optimize some things later. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Related issue #518 Deploy dapp to IPFS
What does it do?
It modifies the app and tooling to create a ⚡️ static-only export ⚡️ without any server functionality.
How to test
Previews
git clone -b deploy-to-ipfs https://github.com/tcrowe/MyBit-Go.appyarn && yarn run clean && yarn run build && yarn run export./node_modules/.bin/ipfs-deploy --no-open -p pinata -d cloudflare out⍟⍟ Step 3 requires some secret environment variables to run. We've communicated behind the scenes to do it.
Changes
Third-party services removed
Packages removed
Strictly speaking it wasn't necessary to remove all these but they aren't being used anymore.
aws-sdkcivic-sip-apiclassnamescompressioncorsexpresslesslintmulternode-sass-chokidarnodemonpreactreact-facebook-pixelreact-gareact-router-domreact-twitter-conversion-trackerbabel-watchcompression-webpack-pluginenzymeenzyme-adapter-react-16extract-text-webpack-pluginrimrafUpgrades
All modules put up to latest stable version. Most notably:
IPFS gateway
It has a configurable way to pull IPFS files like for avatars. See
./constants/links.js#ExternalLinks.IPFS_GATEWAY_URLCurrently
cloudflare-ipfs.comEthereum Gas price
It has a configurable way to get Ethereum Gas prices.
./constants/links.js#ExternalLinks.GAS_PRICE_URLCurrently
https://www.etherchain.org/api/gasPriceOracleUploads
Previously it was uploading to AWS. Now testing.
Deploy
TXTrecord for DNSLink are set (New technology)