reime005 / preact-fourconnect

A DApp game based on Preact, TypeScript, JavaScript and Solidity based Smart Contracts on the Ethereum Blockchain.

Home Page:https://fourconnect-dapp.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fourconnect-dapp

Netlify Status

This repository demonstrates the usage of React, TypeScript and Solidity Smart Contracts on the Ethereum Blockchain to play the game Connect Four. The web app client is developed using the Preact library, which is basically a small subset of React that only includes basic functionality with the premium of having a small footprint. This includes that the code is being written in both JSX and TSX (language with XML). The smart contracts and game logic are covered by tests.

Tech stack:

  • Preact with TypeScript (TSX)
  • Truffle Framework for deploying and testing Solidity smart contracts
  • Drizzle for using smart contracts in JavaScript
  • Netlify for continuous integration/deployment

Try it

Check it out on Netlify

CLI Commands

# install dependencies
npm i
# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# test the production build locally
npm run serve

# run tests with jest and preact-render-spy 
npm run test

For detailed explanation on how things work, checkout the CLI Readme.

About

A DApp game based on Preact, TypeScript, JavaScript and Solidity based Smart Contracts on the Ethereum Blockchain.

https://fourconnect-dapp.netlify.com/

License:MIT License


Languages

Language:JavaScript 58.5%Language:TypeScript 34.3%Language:CSS 4.2%Language:HTML 2.9%