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.
- Preact with TypeScript (TSX)
- Truffle Framework for deploying and testing Solidity smart contracts
- Netlify for continuous integration/deployment
# 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.