This project dynamically generates a .vcf file with a new duck address for each unique hardware id. It was designed for the OnBoard event hosted by Hack Club.
- First you want to create your own copy of the repo by clicking the deploy to netlify button above.
- Next configure your details in the config/template.vcf file. Edit the below lines but don't touch any of the other lines.
N:Klukas;Kieran;;; FN:Kieran Klukas BDAY:2008-04-27 GENDER:male NICKNAME:kieran URL;TYPE=HOME:https://kieranklukas.com URL;TYPE=SOCIAL:https://www.youtube.com/@wanderer.archives URL;TYPE=SOCIAL:https://scrapbook.hackclub.com/Kieran
- Change the photo in config/template.vcf to be your own photo. Ensure that it is 320x320px or smaller and it is a jpeg file.
- Link your site with netlify with the following command:
netlify link
- Connect FaunaDB to your acount by running the commands below and following the prompts:
netlify addons:create fauna netlify addons:auth fauna
- Create two collections in Fauna
email_id_pairs
andusage
- Create a new index in Fauna named
email_by_visit_id
with the settings shown in the image below: - Get your DuckDuckGo email protection api key by going to https://duckduckgo.com/email/settings/autofill and copying the token in the Authorization field:
- Add the api key to the Netlify environment variables for your site with the name
DUCK_API_SECRET
: - Rebuild the site on netlify and Profit! You can add the url of your netlify site to your nfc card and share it with people to give them your contact information while still retaining the privacy of your email and the ability to remotely disable that specific address.
This repositories code is licensed with the GNU AFFERO GENERAL PUBLIC LICENSE you can view it here