{"id":24568943,"url":"https://github.com/bitliner/generator-clap","last_synced_at":"2025-03-17T05:28:00.718Z","repository":{"id":13057574,"uuid":"15737860","full_name":"bitliner/generator-clap","owner":"bitliner","description":"Clap lets you generate an Express app, with ready to use REST-API to access data stored in MongoDb","archived":false,"fork":false,"pushed_at":"2014-01-08T15:03:27.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T14:55:45.041Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitliner.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":"2014-01-08T14:35:57.000Z","updated_at":"2014-01-08T15:24:45.000Z","dependencies_parsed_at":"2022-09-23T11:10:26.533Z","dependency_job_id":null,"html_url":"https://github.com/bitliner/generator-clap","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/bitliner%2Fgenerator-clap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitliner%2Fgenerator-clap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitliner%2Fgenerator-clap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitliner%2Fgenerator-clap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitliner","download_url":"https://codeload.github.com/bitliner/generator-clap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243979011,"owners_count":20378135,"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":"2025-01-23T14:55:48.150Z","updated_at":"2025-03-17T05:28:00.692Z","avatar_url":"https://github.com/bitliner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"generator-clap\n==============\n\nA generator for [Yeoman](http://yeoman.io).\nClap lets you generate an Express app, with ready to use REST-API to access data stored in a MongoDb database instance.\nIt includes also grunt and grunt-forever.\n\n\nTo build the REST API layer, it uses the module [restful-mongo](https://github.com/bitliner/restful-mongo).\n\n\n## Getting Started\n\n### If you didn't yet, install Yeoman\n\n```\n$ npm install -g yo\n```\n\n### Install generator-clap\n\nTo install generator-clap from npm, run:\n\n```\n$ npm install -g generator-clap\n```\n\n### Run generator-clap\n\nCreate a subfolder where you want to generate the app\n```\n$ mkdir myAppName \u0026\u0026 cd $_\n```\n\nFinally, initiate the generator:\n\n```\n$ yo clap MyAppName\n```\n\n### Use the generated app\n\nRun the generated app:\n```\n$ grunt run\n```\n\nTry the REST API:\n* save an object to the database running \n```curl -X POST -H \"Content-Type: application/json\" -d  ```\n```'{\"username\":\"xyz\",\"password\":\"xyz\"}' http://localhost:3000/api/test/example```\n\n* open the browser and access the url `http://localhost:3000/api/test/example?limit=1\u0026fields=username`\n\n### Do you want to use even AngularJS?\n\nJust use [generator-angular](https://github.com/yeoman/generator-angular). Example:\n\nInstall generator-angular\n```\n$ npm install -g generator-angular\n```\ncd in the right folder\n```\n$ cd public \u0026\u0026 mkdir angular-app \u0026\u0026 cd $_\n```\nRun generator-angular\n```\n$ yo angular MyAngularAppName\n```\n\n## License\n\n[MIT License](http://en.wikipedia.org/wiki/MIT_License)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitliner%2Fgenerator-clap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitliner%2Fgenerator-clap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitliner%2Fgenerator-clap/lists"}