mancala/packages/core
Halit Aksoy f404b92aaf feat(backend): save finished games in Postgres
- Connection pool and a small migration runner (schema_migrations, one
  transaction per migration, advisory lock)
- games and game_players tables with indexes for a user's games and for
  popular games
- PostgresGameHistoryRepository: idempotent save, get, recent games of a
  user, popular games
- Integration tests against a real Postgres via testcontainers; a custom
  Jest environment gives tests Node's web globals, which Jest 27 leaves out
- GameRecord carries the number of distinct spectators
2026-10-16 00:11:12 +03:00
..
src feat(backend): save finished games in Postgres 2026-10-16 00:11:12 +03:00
tests/history feat(core): add game history types and move history helpers 2026-10-16 00:07:36 +03:00
.eslintignore (refactor) change folder structure 2024-06-18 01:11:26 +03:00
.eslintrc (refactor) change folder structure 2024-06-18 01:11:26 +03:00
.gitignore (refactor) change folder structure 2024-06-18 01:11:26 +03:00
.prettierrc (refactor) change folder structure 2024-06-18 01:11:26 +03:00
jest.config.js (refactor) change folder structure 2024-06-18 01:11:26 +03:00
package-lock.json (refactor) change folder structure 2024-06-18 01:11:26 +03:00
package.json build: use local mancala.js and @mancala/core packages 2026-10-14 02:09:05 +03:00
README.md (refactor) change folder structure 2024-06-18 01:11:26 +03:00
tsconfig.json (refactor) change folder structure 2024-06-18 01:11:26 +03:00
yarn.lock build: use local mancala.js and @mancala/core packages 2026-10-14 02:09:05 +03:00

Mancala Core

This module contains common functionalities for the Mancala project.

Build

yarn build

Usage

Link this local package to other packages (backend, frontend, mobile).

yarn link

In the target package folder, run:

cd ../backend
yarn link @mancala/core

NPM Publish Instructions

Run the following commands:

npm login
npm publish --access public