A clone of Flowit using typescript / react / nextjs that can be played at https://flowit-game.github.io/flowit-react/
Is licenced as AGPL-3.0.
To build flowit-react locally, first, install the node modules:
yarnNext fetch the levels repository, which is a submodule in levels-source (or clone with --recurse-submodules)
git submodule update --initNow you can run the development server:
yarn devOpen http://localhost:3000 with your browser to see the result.
Ensure the levels-source submodule is checked out (git submodule update --init). Then run
yarn next buildThis will create an out directory with static files that can be hosted (e.g. On GitHub pages or Amazon S3) to create the site. Run yarn start for a quick preview.
If you have docker available and want a quick preview of the site, you can run
cd out
docker run --rm -p 3001:80 -v $PWD:/usr/share/nginx/html nginxAnd then browse to http://localhost:3001
The levels are pinned to a commit of the submodule. To pull in new levels, run
git submodule update --remote levels-sourceand commit the updated levels-source.