Basic Ethereum non fungible token (NFT) created with truffle, openzeppelin and reactjs frameworks
APACHE-2.0 License
This box helps to create a basic Ethereum non fungible token (NFT) with truffle, openzeppelin and reactjs frameworks.
Create a Marble token by giving it a unique:
You can then trade those tokens just like any other NFT.
First ensure you are in a new and empty directory.
Run the unbox
command via npx
and skip to step 3. This will install all necessary dependencies.
npx truffle unbox koshikraj/marble-token
Alternatively, you can install Truffle globally and run the unbox
command.
npm install -g truffle
truffle unbox koshikraj/marble-token
Compile and migrate the smart contracts using truffle.
truffle compile
truffle migrate
Truffle can run tests written in JavaScript Mocha and Chai test framework against your smart contracts.
// outside the development console..
truffle test
In the client
directory, we run the React frontend app.
cd client
npm run start
To build the application for production, use the build script. A production build will be in the client/build
folder.
// ensure you are inside the client directory when running this
npm run build
You are welcome to submit issues and enhancement requests and work on any of the existing issues. Follow this simple guide to contribute to the repository.
NOTE: Be sure to merge the latest from "upstream" before making a pull request!