This dApp allows artists to mint, store, and showcase their digital artworks as NFTs directly on-chain, without relying on traditional Web2 infrastructure.
It combines a modern frontend with a powerful backend canister, enabling users to explore, view, and interact with artworks in a fully decentralized environment.
Whether you're a developer, a crypto enthusiast, or a digital artist — you're in the right place.
You need to have yarn -v > 3.
npm install --global yarn
corepack enable
corepack prepare yarn@4.7.0 --activateIf you want to start working on your project right away, you might want to try the following commands:
cd icp-art-gallery/
dfx help
dfx canister --helpIf you want to test your project locally, you can use the following commands:
# Installs the dependencies
yarn install
# Builds the frontend
yarn build
# Starts the replica, running in the background
yarn dfx:start
# Deploys your canisters to the replica and generates your candid interface
yarn dfx:deploy
#Generates code from your canister's interface
yarn dfx:generate
# Starts the frontend
yarn startOnce the job completes, your application will be available at http://localhost:4943?canisterId={asset_canister_id}.
If you are hosting frontend code somewhere without using DFX, you may need to make one of the following adjustments to ensure your project does not fetch the root key in production:
- set
DFX_NETWORKtoicif you are using Webpack - use your own preferred method to replace
process.env.DFX_NETWORKin the autogenerated declarations- Setting
canisters -> {asset_canister_id} -> declarations -> env_override to a stringindfx.jsonwill replaceprocess.env.DFX_NETWORKwith the string in the autogenerated declarations
- Setting
- Write your own
createActorconstructor