This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.
Try running some of the following tasks:
npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts
- Copy the file
.sample-env
to.env
- Create a new application on on https://dev.usekeyp.com.
- Set the redirect URI to
http://localhost:3000/api/auth/callback/keyp
(note that your port may be different). Ready for production? Make sure to upate this to eg.https://my-site.com/api/auth/callback/keyp
. - Copy the "CLIENT ID" for your application and set it to
KEYP_CLIENT_ID
in.env
- In the
.env
, setTOKEN_SECRET
to a random string, which is used fornext-auth
session cookies. You can generate this usingopenssl rand -base64 32
. (NOTE: Do not use your access token here)