A rudimentary implementation of uniswap for educational purposes. You'd be crazy to actually use this.
Read the guide here: Uniswap from scratch
npm install
npx hardhat node
npx hardhat compile
npx hardhat run scripts/deploy.js --network dev
npx hardhat test