Before installation, you need "node" and "pnpm" installed and a ".env" file setup (go to pre-installation instructions)
pnpm build-dapp
pnpm build-wp-plugin
pnpm dapp
Install WordPress locally, we higly recommend Local WP
Then link wordpress/kredeum-nfts
inside the plugin directory of your WordPress installation
Open your WordPress BackOffice with some URL like http://localhost:8000/wp-admin/admin.php?page=nfts
Kredeum Factory is splitted in various modules listed bellow :
- svelte : Svelte UI components
- contracts : Solidity smartcontrats (with Hardhat & Foundry)
- wordpress : WordPress Kredeum NFTs Factory Plugin
- gulp : Static UI
- thegraph : The Graph subgraph to index NFTs
- common : Common library, config and other common datas
- misc : Other tools, datas and archives
In each of these specific directories you will access more advanced commands
-
NODE v18 : Install node v18
- via this download page
- or via brew on MacOS :
brew install node
-
ENV .env environment file : You have to keep these variables secure in an environmment .env file :
-
ENVIR=DEV
-
NODE_DEBUG=false
-
INFURA_API_KEY=""
-
COVALENT_API_KEY=""
-
NFT_STORAGE_KEY=""
optional for tests and deploy :
-
DEPLOYER_PRIVATE_KEY=""
-
ALCHEMY_API_KEY=""
-
ETHERSCAN_API_KEY=""
You can get API_KEYs free from different providers
Use .env.example to start with Example.file
PRIVATE_KEY_0_DEPLOY is a private keys that requires some token in order to deploy smartcontracts, be carefull to not share this key on the github repo.
-
-
PNPM package manager : homepage
Install latest version : pnpm install page