Mintrand is a opensource Javascript application library that allows you to mint NFTs on multiple blockchain using the IPFS storage system offered by Filecoin.
The library supports the creation of NFTs Assets on multiple Blockchain either by using an API system pre-designed by us or by using a Reactjs simplified graphical interface.
We use Filecoin's IPFS system to be able to store dynamic data from NFTs such as Images, videos and even music to produce a unique signature hash of the original file thanks to the Filecoin blockchain.
Make sure you have installed all of the following prerequisites on your development machine:
- Git - Download & Install Git. OSX and Linux machines typically have this already installed.
- Node.js - Download & Install Node.js and the npm package manager.
> npm install
> npm start
Now open your browser at http://localhost:3000
Before starting the project, it is necessary to create an .env file based on the .env.temp file. The node used here is provided by purestake.io. You can use other nodes but this will require the modification of the Algorand functions to match the node
After that, in the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
But with modern hosting services like Heroku, Netlity or Fleek, you can skip the build because they will do a complete github deployment for you. See the React official page about deployment for more information.
This is a minimal demonstration of how to use js-ipfs
in a create-react-app
generated app.
It boots up a js-ipfs
instance (an IPFS node) via a custom React hook in ./src/hooks/use-ipfs-factory.js
, which is called from ./src/App.js
. Once the IPFS node is set up, ./src/App.js
displays the PeerId of this node and the version number of js-ipfs
used to spawn it.
For more examples, please refer to the Documentation
- Documentation:
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are
greatly appreciated.
- Fork the Mintrand Project
- Create your Feature Branch (
git checkout -b feature/amazing-feature
) - Commit your Changes (
git commit -a -m 'feat: add some amazing feature'
) - Push to the Branch (
git push origin feature/amazing-feature
) - Open a Pull Request
To resolve start issue :
ERROR in ./node_modules/algosdk/dist/browser/algosdk.min.js 7471:55-72
Module not found: Error: Can't resolve 'crypto' in 'C:\Users\Mikhael\Documents\Projet\ORISGAS\mintrand\node_modules\algosdk\dist\browser'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
Use this following instructions :
- Open (
project/node_modules/react-scripts/config/webpack.config.js
) - In fallback add "crypto": (
require.resolve("crypto-browserify")
) As
resolve: {
fallback: {
crypto: require.resolve("crypto-browserify"),
stream: require.resolve('stream-browserify')
}
}
- Then install this dependencies : (
npm i crypto-browserify stream-browserify
) - Restart your app.