Demonstration of creating Full Stack application on zkSync
Consisting of:
- Solidity Smart Contracts
- React Frontend Application
The Smart Contracts are deployed on zkSync's Goerli Testnet on the next addresses:
- RewardToken:
0x86ECC9B797aF1A3a6c607ea446F66Eb241eb17f7
- NumberGuessing:
0x251b578a6e95f9950Df3c44DCd54cBD5Fb67be47
You'll need next software installed on your machine before starting:
- Installed Node.js 18
- Installed yarn package manager
- Installed GIT version control system
Steps should be followed in the given order.
- Clone the repo:
git clone https://github.com/0xMilica/zksync-number-guessing
- Navigate to the folder:
cd zksync-number-guessing
- Create an .env file from the template:
cp .env.example .env
- Fill the .env values with your own
- Install dependencies:
yarn
- Compile the contracts:
yarn compile
- Run the tests:
yarn test
The frontend is hosted at https://zksync-number-guessing.netlify.app/
If instead, you wish to run it locally, follow the next steps:
- Navigate to the Frontend folder:
cd frontend
- Install dependencies:
npm i
- Start the application in development mode:
npm run start
- Open http://localhost:3000 to view it in your browser.