Skip to content

kttm25/mintrand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About The Project

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.

How will IPFS, Filecoin, or related technology be used for this project?

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.

Getting Started

Pre requisites

Make sure you have installed all of the following prerequisites on your development machine:

Installation and Running example

> npm install
> npm start

Now open your browser at http://localhost:3000

Available Scripts from create-react-app

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:

npm start

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.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

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.

Usage

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.

Screen shot of the js app node info

For more examples, please refer to the Documentation

References

Documentation

Contributing

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.

  1. Fork the Mintrand Project
  2. Create your Feature Branch (git checkout -b feature/amazing-feature)
  3. Commit your Changes (git commit -a -m 'feat: add some amazing feature')
  4. Push to the Branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Issue

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 :

  1. Open (project/node_modules/react-scripts/config/webpack.config.js)
  2. In fallback add "crypto": (require.resolve("crypto-browserify")) As
resolve: {
   fallback: {
      crypto: require.resolve("crypto-browserify"),
      stream: require.resolve('stream-browserify')
   }
}
  1. Then install this dependencies : (npm i crypto-browserify stream-browserify)
  2. Restart your app.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published