{"id":21008389,"url":"https://github.com/binarcode/tse-cli","last_synced_at":"2026-02-14T20:35:41.430Z","repository":{"id":32435114,"uuid":"133128912","full_name":"BinarCode/tse-cli","owner":"BinarCode","description":"🛠️ CLI for rapid generators","archived":false,"fork":false,"pushed_at":"2022-12-07T16:26:59.000Z","size":196,"stargazers_count":5,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-11T01:53:21.027Z","etag":null,"topics":["cli","nodejs","tse","tsejs","typescript"],"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/BinarCode.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":"2018-05-12T08:42:16.000Z","updated_at":"2019-07-19T09:22:42.000Z","dependencies_parsed_at":"2023-01-14T21:12:27.518Z","dependency_job_id":null,"html_url":"https://github.com/BinarCode/tse-cli","commit_stats":null,"previous_names":["tsejs/tse-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BinarCode/tse-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinarCode%2Ftse-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinarCode%2Ftse-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinarCode%2Ftse-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinarCode%2Ftse-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BinarCode","download_url":"https://codeload.github.com/BinarCode/tse-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BinarCode%2Ftse-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29455358,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cli","nodejs","tse","tsejs","typescript"],"created_at":"2024-11-19T09:12:24.824Z","updated_at":"2026-02-14T20:35:41.415Z","avatar_url":"https://github.com/BinarCode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tse-cli\n## CLI for scaffolding [tse](https://github.com/tsejs/tse) boilerplate\n\n- Init project from default template\n``` sh\nnpm install -g tse-cli\n```\n\n## Init tse project\n```sh\n    tse init my-first-tse\n```\n\n## Generate a new entity\n```sh\n    tse make coffe \u003c- coffe here is the entity name\n```\n![picture alt](docs/make.png)\n- Entity will contains:\n 1. Schema definition with created_date timestamp\n ```typescript\nimport * as mongoose from 'mongoose';\n\nconst Schema = mongoose.Schema;\n\nexport const CoffeSchema = new Schema({\n    created_date: {\n        type: Date,\n        default: Date.now\n    }\n});\n\n```\n 2. CRUD routes \n ```typescript\nimport coffeController from '../controllers/CoffeController';\nimport {router} from '../lib/Facades';\nrouter.group({\n    prefix: 'coffe',\n    middleware: []\n}, router =\u003e {\n    router.post('', coffeController.store);\n    router.get(':coffeId', coffeController.getCoffeWithID);\n    router.get('', coffeController.getCoffes);\n    router.post('', coffeController.store);\n    router.put(':coffeId', coffeController.updateCoffe);\n    router.delete(':coffeId', coffeController.deleteCoffe);\n});\n```\n 3. Controller that support base CRUD\n ```typescript\nimport * as mongoose from 'mongoose';\nimport { Controller } from './Controller';\nimport { CoffeSchema } from '../models/CoffeSchema';\nimport { Request, Response } from '../lib/framework/application/http';\nconst Coffe = mongoose.model('Coffe', CoffeSchema);\nexport class CoffeController extends Controller {\n    public getCoffes (req: Request, res: Response) {\n        Coffe.find({}, (err, entity) =\u003e {\n            if (err) {\n                res.send(err);\n            }\n            res.respond(entity);\n        });\n    }\n\n    public store(req: Request, res: Response) {\n        Coffe.create(req.body, (err, entity) =\u003e {\n            if (err) {\n                res.send(err);\n            }\n            res.respond(entity);\n        });\n    }\n\n    public getCoffeWithID (req: Request, res: Response) {\n        Coffe.findById(req.params.coffeId, (err, entity) =\u003e {\n            if (err) {\n                res.send(err);\n            }\n            res.respond(entity);\n        });\n    }\n\n    public updateCoffe (req: Request, res: Response) {\n        Coffe.findOneAndUpdate({ _id: req.params.coffeId }, req.body, { new: true }, (err, entity) =\u003e {\n            if (err) {\n                res.send(err);\n            }\n            res.respond(entity);\n        });\n    }\n\n    public deleteCoffe (req: Request, res: Response) {\n        Coffe.remove({ _id: req.params.coffeId }, (err, entity) =\u003e {\n            if (err) {\n                res.send(err);\n            }\n            res.respond({ message: 'Successfully deleted Coffe!'});\n        });\n    }\n}\n\nexport default new CoffeController();\n```\n- Go to [postman](https://www.getpostman.com/) and try to run http://127.0.0.1:3000/coffe/\n![picture alt](docs/postman-make.png)\n\n\n## Stay In Touch\n\n- [Twitter](https://twitter.com/LupacescuEuard)\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2018-present, Binaryk (Eduard) Lupacescu\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarcode%2Ftse-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbinarcode%2Ftse-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbinarcode%2Ftse-cli/lists"}