{"id":23064299,"url":"https://github.com/hiejulia/mean-stack-boilerplate","last_synced_at":"2026-05-17T17:43:16.292Z","repository":{"id":57293862,"uuid":"87972144","full_name":"hiejulia/mean-stack-boilerplate","owner":"hiejulia","description":"MEAN boilerplate with Angular 2 -will be updated to Angular 4 ","archived":false,"fork":false,"pushed_at":"2017-04-17T09:34:40.000Z","size":280,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-06T21:08:18.547Z","etag":null,"topics":["boilerplate","mean-stack","npm","npm-module"],"latest_commit_sha":null,"homepage":"https://github.com/HienNguyen711/mean-stack-boilerplate","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/hiejulia.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-11T19:35:44.000Z","updated_at":"2017-04-12T06:56:11.000Z","dependencies_parsed_at":"2022-09-01T06:40:16.444Z","dependency_job_id":null,"html_url":"https://github.com/hiejulia/mean-stack-boilerplate","commit_stats":null,"previous_names":["hiennguyen711/mean-stack-boilerplate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hiejulia/mean-stack-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiejulia%2Fmean-stack-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiejulia%2Fmean-stack-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiejulia%2Fmean-stack-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiejulia%2Fmean-stack-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiejulia","download_url":"https://codeload.github.com/hiejulia/mean-stack-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiejulia%2Fmean-stack-boilerplate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266669706,"owners_count":23965795,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["boilerplate","mean-stack","npm","npm-module"],"created_at":"2024-12-16T04:17:42.652Z","updated_at":"2026-05-17T17:43:11.272Z","avatar_url":"https://github.com/hiejulia.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/HienNguyen711/JS-dev-env.svg?branch=master)](https://travis-ci.org/HienNguyen711/JS-dev-env)\n# mean-stack-boilerplate\n\n\n## What is this\nMEAN stack boilerplate - with CRUD architecture \nMongoDB - Express - Angular 2 - NodeJS \n(will be updated to Angular 4)\n\n## Check \nhttps://www.npmjs.com/package/mean-stack-boilerplate\n\n## How to run/install\n+ `npm install`\n+ `node server.js`\n+ `npm start`\n+ Navigate to `localhost:3000/`\n\n\n## File naming convention \n\n\n\n## Other command\n+ `npm run lint` -\u003e Linting\n+ `npm run debug`\n+ `NODE_ENV=test mocha --reporter spec app/tests` `set NODE_ENV=test`  `mocha --reporter spec app/tests`\n\n\n\n\n## Download chrome extension\n+ https://chrome.google.com/webstore/detail/augury/elgalmkoelokbchhkhacckoklkejnhcd/related\n\n+ AngularJS Batarang\n\n\n\n## Testing\n+ Unit tests \n+ E2E tests\n+ Testing Express\n+ Mocha\n+ Should.js\n+ Super test modules\n\n+ Testing for front-end Angular 2 - Jasmine\n+ Karma - test runner\n+ PhantomJS browser launcher - headless browser\n\n\n\n## Testing convention\n+ `describe(description, callback)`\n+ `it(description, callback)`\n+ `before(callback)`\n+ `beforeEach(callback)`\n+ `after(callback)`\n+ `afterEach(callback)`\n\n\n\n\n## MongoDB example queries\n+ `db.products.insert({\n  title: 'Product1',\n  stock: 15,\n  price: 112.36\n})`\n+ `db.products.find()`\n+ `db.products.update({},\n  { $set: {title: 'MEANshop'} },\n  { multi: true}\n)`\n+ `db.products.remove({})`\n+ `db.products.aggregate([{\n  $group: {\n    _id: null,\n    total: { $sum: \"$price\" }\n  }\n}])`\n+ `db.products.aggregate([\n  { $match: {title: 'Product' }},\n  { $group: { _id: '$title', total: { $sum: \"$price\" } }}\n])`\n+ Aggregators : `$sum,$match,$group,$sort`\n### Find\n+ `Model.find(conditions, [fields], [options], [callback])`\n+ `Model.findById(id, [fields], [options], [callback])`\n+ `Model.findOne(conditions, [fields], [options], [callback])`\n+ ``\n\n\n### Update\n+ `Model.update(conditions, update, [options], [callback])`\n+ `Model.findByIdAndUpdate(id, [update], [options], [callback])`\n+ `Model.findOneAndUpdate([conditions], [update], [options], [callback])`\n\n\n### Delete\n+ `Model.remove(conditions, [callback])`\n+ `Model.findByIdAndRemove(id, [options], [callback])`\n+ `Model.findOneAndRemove(conditions, [options], [callback])`\n\n\n\n## Deploy on cloud service platform\n+ Heroku : `foreman start`-`heroku create`-`git push heroku master`- add single web dyno `heroku ps:scale web=1`-check live `heroku open`\n+ Firebase\n+ Google cloud platform\n\n\n## Git deploy\n+ `git init`\n+ `git add .`\n+ `git commit -m \"first commit\"`\n\n\n## Settings\n+ `NODE_ENV=production`\n\n\n\n## Angular SEO for crawler\n+ Replace hash with HTML5 routing mode\n\n## NPM scripts\n+ `npm run debug` : debug the application\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiejulia%2Fmean-stack-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiejulia%2Fmean-stack-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiejulia%2Fmean-stack-boilerplate/lists"}