Prerequisites
- The Vercel CLI installed.
- A Pinata account created.
- Git command line and TypeScript >= 4.7 installed.
Step 1: Project Installation
Open a new terminal and navigate to your preferred directory where you want your project to live. Clone the repo and install dependencies using these commands:Step 2: Local Environment Setup
Setup HTTPS for Local Wallet Pairing
The HashioDAO app utilizes the hashconnect library to pair with supported wallet extensions. Currently, the only supported wallet extension is HashPack. The HashConnect 1-click pairing feature only works in an SSL secured environment (https URLs). EnableHTTPS in your local build by creating a .env file in the root of this project and adding the HTTPS environment variable to it.
Add the HTTPS environment variable to your .env file and set it to true:
mkcert via Homebrew (on macOS):
.cert directory:
SSL_CRT_FILE and SSL_CRT_FILE environment variables to the path of the certificate and key files. Add the variables to your .env file:
Note: Make sure to include
.env and .cert in your .gitignore file so this information is not committed to version control.Setup Pinata Environment Variables
The HashioDAO app stores and retrieves IPFS data using Pinata. A Pinata public key, secret key, and gateway URL are necessary for IPFS pinning and fetching features to work as intended. If you have not already done so, create a Pinata account to generate a new set of keys and a gateway URL. Add the below environment variables to your.env file to use the Pinata IPFS API:
Step 3: Run Application
Run the application using the below command:https:// prefixed URL for your local server, indicating that HTTPS is successfully enabled.