A marketplace for buying and selling things together with friends.
git clone https://github.com/atilatech/together
cd safe-space
# git checkout <version> #optional if you want to use a specific version e.g. git checkout 0.4.0
yarn install
yarn start
Open http://localhost:3000 to view it in the browser.
- Get some tokens to pay the gas fees for deploying the smart contracts:
- Ethereum Goerli: https://goerlifaucet.com
cp example.env .env
touch .privatekey
# put environment variables in .env and .privatekey
source .env
npx hardhat deploy --chain-id 5
- Deploy the smart contract:
npx hardhat deploy --chain-id [chainId]
- If you want to deploy just the NFT or the Market without deploying everything run:
npx hardhat deploy:nft --chain-id [chainId]
npx hardhat deploy:market --chain-id [chainId]
npx hardhat deploy:rentableNFT --chain-id [chainId]
- Here are some examples:
- Ethereum Goerli:
npx hardhat deploy --chain-id 5
- Ethereum Goerli:
npx hardhat deploy:rentableNFT --chain-id 5
- Ethereum Goerli:
- If you want to deploy just the NFT or the Market without deploying everything run:
- Get Etherscan API Key: https://etherscan.io/myapikey
- Similar process for Other networks
- Set environment variable in
.secrets
:export ETHERSCAN_API_KEY=""
npx hardhat verify --network goerli [smart_contract_address_you_just deployed]
- Example:
npx hardhat verify --network goerli 0x85942528541a1d7db9e9d84a074d0b2204c94b5a
- To see a list of other networks:
npx hardhat verify --list-networks
- Example:
npx hardhat test
npx hardhat compile
Note: Compile step may not be necessary if you already run test
-
NFT Marketplace: https://goerli.etherscan.io/address/0xa0a3c753387050d1949d6b8db672fff724b635c1#code
-
NFT: https://goerli.etherscan.io/address/0x85942528541a1d7db9e9d84a074d0b2204c94b5a#code
- Get your infura API key.
- Add it to
.env
- Edit
server/nfts.json
source .env
node server/CreateNFT.js 'server/nfts.json'