๐งช Quickly deploy and experiment with Solidity using a frontend that adapts to your smart contract ๐งช And a free unlimited storage backend:
Create a free account on deta.sh. Requires only an email address.
confirm your email then login to your deta account:
A page will display your project key. Copy and save this key.
Code Prerequisites: Node (v16 LTS) plus Yarn and Git
clone/fork ๐ scaffold-eth-db:
git clone https://github.com/2187Nick/scaffold-eth-db.git
install and start your ๐ทโ Hardhat chain:
cd scaffold-eth-db
yarn install
yarn chain
๐ผ Add your Deta project key in packages/react-app/.env
in a second terminal window, start your ๐ฑ frontend:
cd scaffold-eth-db
yarn start
in a third terminal window, ๐ฐ deploy your contract:
cd scaffold-eth-db
yarn deploy
๐ฑ Open http://localhost:3000 to see the app. Click "Grab Funds from Faucet"
To test the database we will write a message on the blockchain. Type message then click Send Message:
code: await database.put({sender: update.from, message: newPurpose});
Verify the data was written to your Deta database:
Fetch Data pulls all data from the database:
code: await database.fetch();
Next enter a message to pull it's details stored in the database.
To create a new database enter a name and click Create.
10 seconds later it will appear in the dropdown menu.
Select the new database and send a new message. Check Deta to verify the new database was created.
๐ Edit your smart contract YourContract.sol
in packages/hardhat/contracts
๐ Edit your frontend App.jsx
in packages/react-app/src
๐ผ Edit your deployment scripts in packages/hardhat/deploy
Documentation, tutorials, challenges, and many more resources, visit: docs.scaffoldeth.io
- scaffold-eth-typescript
- scaffold-eth-tailwind
- scaffold-nextjs
- scaffold-chakra
- eth-hooks
- eth-components
- scaffold-eth-expo
- scaffold-eth-truffle
๐ Read the docs: https://docs.soliditylang.org
๐ Go through each topic from solidity by example editing YourContract.sol
in ๐ scaffold-eth
๐ง Learn the Solidity globals and units
Check out all the active branches, open issues, and join/fund the ๐ฐ BuidlGuidl!
-
๐ซ Extend the NFT example to make a "buyer mints" marketplace
-
โ๏ธ Learn how ecrecover works
-
๐ฉโ๐ฉโ๐งโ๐ง Build a multi-sig that uses off-chain signatures
-
โ๏ธ Learn how a simple DEX works
-
๐ฆ Ape into learning!
๐ You need an RPC key for testnets and production deployments, create an Alchemy account and replace the value of ALCHEMY_KEY = xxx
in packages/react-app/src/constants.js
with your new key.
๐ฃ Make sure you update the InfuraID
before you go to production. Huge thanks to Infura for our special account that fields 7m req/day!
Register as a builder here and start on some of the challenges and build a portfolio.
Join the telegram support chat ๐ฌ to ask questions and find others building with ๐ scaffold-eth!
๐ Please check out our Gitcoin grant too!