Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-14T14:47:22.000Z (6 months ago)
- Last Synced: 2024-08-14T16:22:51.400Z (6 months ago)
- Topics: dapp, ethereum, gin, gin-gonic, go, golang, metamask, nodejs, qwik, qwik-city, smart-contracts, solidity, tailwindcss, typescript
- Language: TypeScript
- Homepage:
- Size: 553 KB
- Stars: 2
- 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
[![Node.js Badge](https://img.shields.io/badge/Node.js-393?logo=nodedotjs&logoColor=fff&style=for-the-badge)](https://nodejs.org/en)
[![Qwik Badge](https://img.shields.io/badge/Qwik-3178C6?logo=typescript&logoColor=fff&style=for-the-badge)](https://qwik.builder.io)
[![Go Badge](https://img.shields.io/badge/Go-00ADD8?logo=go&logoColor=fff&style=for-the-badge)](https://go.dev/)
[![Gin Badge](https://img.shields.io/badge/Gin-008ECF?logo=gin&logoColor=fff&style=for-the-badge)](https://gin-gonic.com/)
[![Solidity Badge](https://img.shields.io/badge/Solidity-363636?logo=solidity&logoColor=fff&style=for-the-badge)](https://soliditylang.org/)
[![Geth Badge](https://img.shields.io/badge/Geth-3C3C3D?logo=ethereum&logoColor=fff&style=for-the-badge)](https://geth.ethereum.org/)
[![MetaMask Badge](https://img.shields.io/badge/MetaMask-3C3C3D?logo=ethereum&logoColor=fff&style=for-the-badge)](https://metamask.io/)
[![Tailwind CSS Badge](https://img.shields.io/badge/Tailwind%20CSS-06B6D4?logo=tailwindcss&logoColor=fff&style=for-the-badge)](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
```Create a '**build**' directory and add abi and bytecode inside:
```bash
mkdir build
touch build/Cert.abi
touch build/Cert.bin
```Install abigen:
```bash
go install github.com/ethereum/go-ethereum/cmd/abigen@latest
```Generate Go binding for contract:
```bash
abigen --abi build/Cert.abi --bin build/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/cosmtrek/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).