Skip to content

temt-ceo/CODE-of-flow

Repository files navigation

CodeOfFlow(COF.ninja)

COF.ninja is a tribute to SEGA's Code Of Joker. So let's enjoy the game COF.ninja and wait the revival of Code Of Joker which runs on the Flow!

The following webpage describes how to call blockchain wallet from within Dart.

https://medium.com/@tickets.on.flow/how-to-call-blockchains-wallet-in-flutter-apps-633416720f23

The following webpage describes how to setup Direct Lambda Resolver.

https://medium.com/@tickets.on.flow/how-to-build-a-wallet-less-blockchain-game-with-graphql-80ab28d099a1

The diagram of this app's program sequence

Except at battle

Direct Lambda Resolver (1)

When battling

Direct Lambda Resolver (3)

Youtube Channel

https://www.youtube.com/watch?v=brActSNMiZk

Babeled js file ↓

https://github.com/temt-ceo/CODE-of-flow/blob/master/web/index.js

Lambda file used for GraphQL Server using Direct Lambda Resolver with AWS AppSync.

https://github.com/temt-ceo/CODE-of-flow/blob/master/aws_lambda/src/index.js

Smart Contract

https://github.com/temt-ceo/game-built-on-flow/blob/hackathon/cadence/contracts/CODEOfFlow.cdc
https://flow-view-source.com/mainnet/account/0x24466f7fc36e3388/contract/CodeOfFlow

How to build web app

Install Flutter SDK

https://docs.flutter.dev/get-started/install/macos
flutter build web

Install amplify-cli

curl -sL https://aws-amplify.github.io/amplify-cli/install | bash && $SHELL

cd
vim .zprofile

Press i, then paste this line
export PATH="$HOME/.amplify/bin:$PATH"

Restart your terminal

amplify configure

amplify init

Choose flutter as App type.
And then, Configuration file location: will be set to ./lib/

Configuration inside main.dart

Refer to https://docs.amplify.aws/start/getting-started/integrate/q/integration/flutter/
or https://www.youtube.com/watch?v=KVAaQoV4c6I

Official document: https://docs.amplify.aws/lib/graphqlapi/mutate-data/q/platform/flutter/

amplify add api

amplify codegen models

The model files will be created inside /lib/models folder.

amplify push

amplify push

How to use DevTools to analyze the performance such as memory or cpu.

dart devtools

or type below after "command + shift + p"

> devtools

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors