{"id":17651047,"url":"https://github.com/tilap/piggy-module","last_synced_at":"2025-03-30T08:27:24.292Z","repository":{"id":35685693,"uuid":"39962012","full_name":"tilap/piggy-module","owner":"tilap","description":"Basic business module: manager, vo, validator","archived":false,"fork":false,"pushed_at":"2015-09-05T11:43:08.000Z","size":616,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-07T16:19:25.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tilap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-30T16:59:34.000Z","updated_at":"2015-07-30T17:08:16.000Z","dependencies_parsed_at":"2022-09-20T23:02:41.577Z","dependency_job_id":null,"html_url":"https://github.com/tilap/piggy-module","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilap%2Fpiggy-module","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilap%2Fpiggy-module/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilap%2Fpiggy-module/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tilap%2Fpiggy-module/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tilap","download_url":"https://codeload.github.com/tilap/piggy-module/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246293838,"owners_count":20754330,"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-10-23T11:40:07.874Z","updated_at":"2025-03-30T08:27:24.264Z","avatar_url":"https://github.com/tilap.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"piggy-module [![NPM version][npm-image]][npm-url] [![NPM version][doc-image]][doc-url] \n============================\n\n_This project is a work in progress and not to use in production._\n\n**Piggy-module** is a bunch of class to bind business work to technical storages.\n\nIt comes with the following extendable classes:\n- **Service**: business interface (the only one to use from \"controllers\"). Can trigger action to other services.\n- **Manager**: manage **its** associated Value Object. Called by the Service, trigger validation and translate the Vo as data to send to the Storage.\n- **Storage**: extends AbstractStorage, and deel with basic data storage action (crud).\n- **Vo**: The business object itself _maybe should be named DTO instead of Value Object_\n\nA **business package** is a bunch of all of that classes, with a configuration file describing the object properties / validations.\n\nThe code documentation is available [here](https://doc.esdoc.org/github.com/tilap/piggy-module/)\n\n_I will complete that file once it a stable enough_\n\n## Developer\n\nInstalling dev dependencies, you get the following make commands\n- `make build` or `make b` to transpile src to lib\n- `make watch` or `make w` to start watching the src and automatically transpile files\n- `make clean` or `make c` to clean the lib directory\n\nAnd to make ease, you can use `make cbw` that run clean, build then watch.\n\nLinting can be done by running `npm lint`.\n\n[npm-image]: https://img.shields.io/npm/v/piggy-module.svg?style=flat\n[npm-url]: https://npmjs.org/package/piggy-module\n[doc-image]: https://doc.esdoc.org/github.com/tilap/piggy-module/badge.svg\n[doc-url]: https://doc.esdoc.org/github.com/tilap/piggy-module/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilap%2Fpiggy-module","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftilap%2Fpiggy-module","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftilap%2Fpiggy-module/lists"}