{"id":20800328,"url":"https://github.com/maxtermax/generator-lego","last_synced_at":"2026-04-25T19:31:43.487Z","repository":{"id":32345032,"uuid":"35920605","full_name":"Maxtermax/generator-lego","owner":"Maxtermax","description":"This is a concept to build web applications based on the idea that build applications should be like building Lego houses: putting blocks ending with a complete application.","archived":false,"fork":false,"pushed_at":"2015-06-26T05:34:01.000Z","size":1200,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-19T18:03:00.142Z","etag":null,"topics":["generator-lego","mongodb","stack"],"latest_commit_sha":null,"homepage":"","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/Maxtermax.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":"2015-05-20T02:19:12.000Z","updated_at":"2017-05-10T23:33:56.000Z","dependencies_parsed_at":"2022-08-24T16:51:48.218Z","dependency_job_id":null,"html_url":"https://github.com/Maxtermax/generator-lego","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxtermax%2Fgenerator-lego","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxtermax%2Fgenerator-lego/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxtermax%2Fgenerator-lego/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxtermax%2Fgenerator-lego/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Maxtermax","download_url":"https://codeload.github.com/Maxtermax/generator-lego/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243147274,"owners_count":20243744,"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":["generator-lego","mongodb","stack"],"created_at":"2024-11-17T18:13:20.077Z","updated_at":"2026-04-25T19:31:43.440Z","avatar_url":"https://github.com/Maxtermax.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generator-lego\nThis is a concept to build web applications based on the idea that build applications should be like building Lego houses: putting blocks ending with a complete application.\n\n### Advantage\n  - Keep sort code\n  - Build applications like a human not like machines we are not asyncronus  \n  - Coding in ES6  \n  - Magic\n\n### Installation\n\n```sh\n$ npm i -g yo\n$ npm i -g nodemon\n$ npm i generator-stack-lego\n```\n### Start project \n\n```sh\n$ mkdir myProject \u0026\u0026 cd myProject \u0026\u0026 yo stack-lego \n```\n\nthis will prepare the environment of development with this files:\n\n![tree](./images/init.png \"Logo Title Text 1\")\n\n### Blocks \nThis are pieces that fulfill a specific function eg in a web form system is required to handle routing, access token, cookies etc ...\n\nIn node js there are several modules to do that kind of thing the most popular is express js so the generator lego works split the each one of the functions of block that put one on other forming a stack.\n\nIn this version just are two block:\n* express\n* mongodb\n\n### Express block\n![tree](./images/express-block.png \"express block\")\n\nFor start follow next command:\n```sh\n$ yo stack-lego:block express \n```\nthen that was install all basic middlewares that express need :\n\n### [Cors](https://www.npmjs.com/package/cors) \n\nFor handler permissions and communications between servers.\n\n### [Multer](https://www.npmjs.com/package/multer) \nFor handler some http verbs and multipart data. \n\n### [Method Override](https://www.npmjs.com/package/method-override) \nFor handler some http verbs.\n\nPlease follow the guide to use this awesome block in this link [ stack-lego block express ](./blocks/express/guide.md)\n\n### Mongodb block \n![mongodb](./images/mongodb-block.png \"mongodb block\")\n\nFor start follow next command:\n```sh\n$ yo stack-lego:block mongodb\n```\nthen the generator will install one driver of mongodb called [mongoose](http://mongoosejs.com/) \nPlease follow the guide to use this awesome block in this link [ stack-lego block mongodb ](./blocks/mongodb/guide.md)\n\n\nplease give me [feedback](https://twitter.com/Sneyder_A)\n\n\nLicense\n----\n\n[GNU](http://www.gnu.org/licenses/licenses.es.html)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxtermax%2Fgenerator-lego","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxtermax%2Fgenerator-lego","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxtermax%2Fgenerator-lego/lists"}