A decentralized naming registry DApp built with Next.js, Tailwind CSS, Shadcn UI components, and Hardhat for smart contract development. This project allows users to search for, register, renew, and transfer unique names on the blockchain.
project-root/
├── backend/ # Hardhat smart contract project
│ ├── contracts/
│ ├── scripts/
│ ├── hardhat.config.js
│ └── .env # Environment variables
├── frontend/ # Next.js frontend
│ ├── abi/
│ ├── app/
│ ├── components/
│ ├── lib/
│ └── public/
├── README.md
└── .gitignore
git clone https://github.com/kautilyadevaraj/decentralized-name-registry.git
cd decentralized-name-registry
cd backend
npm install
cd ../frontend
npm install
Create a .env
file in both the backend/
directory.
.env
SEPOLIA_RPC=https://eth-sepolia.g.alchemy.com/v2/YOUR_ALCHEMY_KEY
PRIVATE_KEY=YOUR_WALLET_PRIVATE_KEY
Note: Never commit
.env
files. They are listed in.gitignore
.
cd backend
npx hardhat compile
npx hardhat run scripts/deploy.js --network sepolia
cp backend/artifacts/contracts/NameRegistry.sol/NameRegistry.json frontend/abi/NameRegistry.json
cd frontend
npm run dev
Open your browser at http://localhost:3000
You can deploy the frontend easily using Vercel:
Add your environment variables on Vercel's dashboard.
/register
/search?name=yourname.dcn
/name/yourname.dcn
/renew/yourname.dcn
/profile
/explore
MIT © 2025 Kautilya DK