https://github.com/tr1sm0s1n/qwik-gin-dapp
Fast and performance-efficient DApp with Qwik and TypeScript as frontend and Gin and Go as backend.
https://github.com/tr1sm0s1n/qwik-gin-dapp
dapp ethereum gin gin-gonic go golang metamask nodejs qwik qwik-city smart-contracts solidity tailwindcss typescript
Last synced: 11 days ago
JSON representation
Fast and performance-efficient DApp with Qwik and TypeScript as frontend and Gin and Go as backend.
- Host: GitHub
- URL: https://github.com/tr1sm0s1n/qwik-gin-dapp
- Owner: tr1sm0s1n
- License: mit
- Created: 2023-05-27T09:04:30.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-25T06:47:08.000Z (about 2 months ago)
- Last Synced: 2025-05-25T07:36:32.261Z (about 2 months ago)
- Topics: dapp, ethereum, gin, gin-gonic, go, golang, metamask, nodejs, qwik, qwik-city, smart-contracts, solidity, tailwindcss, typescript
- Language: TypeScript
- Homepage:
- Size: 428 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Qwik-Gin-DApp
Fast and performance-efficient DApp with Qwik and TypeScript as frontend and Gin and Go as backend.
## 🛠 Built With
[](https://nodejs.org/en)
[](https://qwik.builder.io)
[](https://go.dev/)
[](https://gin-gonic.com/)
[](https://soliditylang.org/)
[](https://geth.ethereum.org/)
[](https://metamask.io/)
[](https://tailwindcss.com/)## ⚙️ Run Locally
Clone the project:
```bash
git clone https://github.com/tr1sm0s1n/qwik-gin-dapp.git
cd qwik-gin-dapp
```### Server
Go to the '**server**' directory:
```bash
cd server
```Add/update abi and bytecode inside the '**lib**' directory:
```bash
touch lib/Cert.json
touch lib/Cert.bin
```Install abigen:
```bash
go install github.com/ethereum/go-ethereum/cmd/abigen@latest
```Generate Go binding for contract:
```bash
abigen --v2 --abi lib/Cert.json --bin lib/Cert.bin --pkg lib --type Cert --out lib/Cert.go
```Run a simulated blockchain on port **8545**, and add a private key to the '**.env**' file inside '**server**'.
Deploy contract:
```bash
go run scripts/deploy.go
```Start the server:
```bash
go run .
```Use air for live reload (Optional):
```bash
# install air
go install github.com/air-verse/air@latest
# start air
air
```### Client
Go to the '**client**' directory:
```bash
cd client
```Install pnpm (Optional):
```bash
npm i -g pnpm
```Install dependencies:
```bash
pnpm install
```Import the deployer account to the **MetaMask** extension using the private key.
Start the client:
```bash
pnpm dev
```Click **Connect** to create a sign. Copy the sign to the '**.env**' file inside '**client**' and connect again.
## 📜 License
Click [here](./LICENSE.md).
## 🎗️ Contributing
Click [here](./CONTRIBUTING.md).
## ⚖️ Code of Conduct
Click [here](./CODE_OF_CONDUCT.md).