{"id":19360502,"url":"https://github.com/uber5/u5-derive","last_synced_at":"2026-06-15T08:31:31.652Z","repository":{"id":19439575,"uuid":"87039110","full_name":"Uber5/u5-derive","owner":"Uber5","description":"Given complex business logic in Javascript and MongoDB, derive properties functionally","archived":false,"fork":false,"pushed_at":"2023-01-04T21:39:22.000Z","size":2273,"stargazers_count":0,"open_issues_count":16,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T08:57:34.702Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Uber5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-03T04:51:27.000Z","updated_at":"2019-11-11T08:20:24.000Z","dependencies_parsed_at":"2023-01-13T20:22:17.975Z","dependency_job_id":null,"html_url":"https://github.com/Uber5/u5-derive","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uber5%2Fu5-derive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uber5%2Fu5-derive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uber5%2Fu5-derive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Uber5%2Fu5-derive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Uber5","download_url":"https://codeload.github.com/Uber5/u5-derive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240475239,"owners_count":19807292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T07:18:20.599Z","updated_at":"2026-06-15T08:31:31.595Z","avatar_url":"https://github.com/Uber5.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# u5-derive\n\nGiven complex business logic in Javascript and MongoDB, derive properties functionally.\n\nIn other words:\n\n* Given\n  * business data in MongoDB,\n  * a description of derivable properties (see ./samples/simple/domain.js)\n* When\n  * state changes\n* then\n  * Derive properties.\n\n# Status\n\nErm, don't use, not ready.\n\n# Run a REPL\n\nThis is experimental, it runs a REPL for one of the samples:\n\n```\n./node_modules/.bin/babel-node ./samples/simple/index.js\n```\n\n\n# Documentation\n\nThere is [experimental documentation](https://uber5.github.io/u5-derive/public/current/).\n\n## Generate Documentation\n\nCheckout `gh-pages` branch, then run `./scripts/update-docs.sh`. (It *should*\nmerge master and build docs etc.)\n\n# Run Tests\n\n* Make *sure* you do the configuration to your MongoDB instance below.\n* Note that by default `mongodb://localhost/u5-derive-test` will be used when\n  running the test, as per\n  [__tests__/config.js](./src/__tests__/config.js).\n* Once done:\n\n```bash\nnpm run test\n```\n\n\n# Configuration\n\nCurrently needed:\n\n- `MONGO_TAIL_URL`\n- `MONGO_TAIL_DATABASE_NAME`\n- `MONGO_URL`\n\nIn addition, your local mongod may have to be configured as a standalone replica set:\n\n* Make sure you run `mongod` with the parameter `--replSet test` (where \"test\"\n  is the name of the replSet, could be a different name).\n* initiate the replSet (inside a mongo shell) with:\n\n```\nrs.initiate({ _id: \"test\", version: 1, members: [ { _id: 1, host: \"localhost:27017\" } ] })\n```\n\nIf you don't do this, you may get errors about \"cursor not tailable\" or similar.\n\n\n# On the Implementation and Terminology\n\n(just a beginning)\n\nIn order to speak about domain models, we require potentially unfamiliar, abstract\nterminology: We can't say any more\n\"one person has many addresses\" (concrete), we have to look at\n\"is it a to-one or a to-many association\".\n\nFor this, terminology should (but currently isn't, at least not fully) aligned\nwith the\n[UML terminology](https://en.wikipedia.org/wiki/Glossary_of_Unified_Modeling_Language_terms).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber5%2Fu5-derive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuber5%2Fu5-derive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuber5%2Fu5-derive/lists"}