Skip to content
A DApp game based on Preact, TypeScript, JavaScript and Solidity based Smart Contracts on the Ethereum Blockchain.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
solidity
src
tests/__mocks__
.babelrc
.eslintignore
.eslintrc
.gitignore
LICENSE
README.md
declarations.d.ts
package-lock.json
package.json
preact.config.js
transformPreprocessor.js
tsconfig.json
tslint.json

README.md

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.

You can’t perform that action at this time.