Overview
HQ20 create-hq20-dapp is a versatile development platform that offers different templates for smart contract development, react web UI, and API with a cache server. It is suitable for new projects and includes examples of tests, coverage, documentation generators, linters, and more. The platform supports Node 8.16.0 or Node 10.16.0 and later versions.
Features
- Smart Contracts Template: Provides an example of a solidity smart contracts project.
- React Web UI Template: Uses create-react-app boilerplate with typescript and ethers.js to connect to a local network.
- API Template: Builds an API with a cache server using express.js and a PostgreSQL database. It listens and caches events.
Installation
To install the HQ20 create-hq20-dapp theme, follow these steps:
- Ensure that you have Node 8.16.0 or Node 10.16.0 or a later version installed on your local development machine (not required on the server).
- Use nvm (macOS/Linux) or nvm-windows to switch between different Node versions for different projects.
- Run the following command to create a new app:
yarn create <starter-kit-package> is available in Yarn 0.25+
- This will create a directory called “my-app” inside the current folder.
- Inside the “my-app” directory, you will find the initial project structure and the installed dependencies.
- No configuration or complicated folder structures are needed. You will have all the necessary files to build your app.
Summary
HQ20 create-hq20-dapp is a comprehensive development platform that offers templates for smart contract development, react web UI, and API with a cache server. It provides a smooth installation process and includes essential features such as testing, coverage, documentation generation, and linters. The platform is highly customizable, allowing users to choose which components to install and use based on their project requirements. Additionally, it supports automatic updates and encourages contributions from the community. HQ20 create-hq20-dapp is licensed under Apache-2.0 and utilizes icons made by srip from www.flaticon.com.