The rule administration panel is hosted here and the Game of Life itself is hosted here.
This turborepo uses Yarn as a package manager. It includes the following packages/apps:
gameoflife
: a Leaflet application providing a simulation of the popular Game of life, with the possibility to use different rulesets.webservice
: an Apollo Server GraphQL-server for fetching rule for said application, using a interface for adding new rules provided by Next.jsui
: a stub React component libraryeslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
Install dependencies with
yarn install
You need a working Postgres database and to connect it to Prisma. Add a .env and with, for example,
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/webserver"
NEXT_PUBLIC_API_URL="http://localhost:3000/api"
Documentation for the Postgres URI can be found here After setting it up, run
yarn prisma db push
yarn prisma db seed
yarn prisma migrate
While developing, run the developement build with the following command:
yarn dev
To build all apps and packages, run the following command:
yarn build