{"id":17457922,"url":"https://github.com/royling/docker-mean","last_synced_at":"2025-10-13T04:03:12.746Z","repository":{"id":147183773,"uuid":"48631170","full_name":"royling/docker-mean","owner":"royling","description":"Set up MEAN workspace using docker","archived":false,"fork":false,"pushed_at":"2017-06-13T08:20:55.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-18T05:58:08.522Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/royling.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-27T03:19:34.000Z","updated_at":"2023-03-10T10:23:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"c7cfcc2a-579f-4415-a284-e3a993db4745","html_url":"https://github.com/royling/docker-mean","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/royling/docker-mean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royling%2Fdocker-mean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royling%2Fdocker-mean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royling%2Fdocker-mean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royling%2Fdocker-mean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/royling","download_url":"https://codeload.github.com/royling/docker-mean/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royling%2Fdocker-mean/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269409938,"owners_count":24412143,"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-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2024-10-18T03:24:19.164Z","updated_at":"2025-10-13T04:03:07.713Z","avatar_url":"https://github.com/royling.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"#Docker for development with MEAN stack\n\n\n### Build image:  \n```sh\n\tdocker build -t royling/mean-dev -f ./Dockerfile ./\n```\n\n### Use image to set up workspace:  \n1. Start a one-off container to scaffold app with [_generator-angular-fullstack_](https://github.com/angular-fullstack/generator-angular-fullstack):  \n\t```sh\n\tdocker run -it --rm --name scaffolding -v $PWD:/workspace royling/mean-dev yo angular-fullstack Hello\n\t```\n\n\tNOTE: `open` grunt task is not supported from a docker, so need to modify the scaffolded `Gruntfile.js` first:\n\t```js\n\tgrunt.task.run([\n\t  'clean:server',\n\t  'env:all',\n\t  'concurrent:pre',\n\t  'concurrent:server',\n\t  'injector',\n\t  'wiredep:client',\n\t  'postcss',\n\t  'express:dev',\n\t  'wait',\n\t  //'open',\n\t  'watch'\n\t]);\n\t```\n\n2. Install node modules \u0026\u0026 bower modules:  \n\t```sh\n\tdocker run -it --rm --name install_modules -v $PWD:/workspace royling/mean-dev npm install \u0026\u0026 bower install\n\t```\n\n3. Start MongoDB with official mongo image:  \n\t```sh\n\tdocker run --name mongodb -d -p 27017:27017 mongo\n\t```\n\n4. Modify configuration(`server/config/environment/development.js`) to connect to mongodb container:  \n\t```js\n\tmongo: {\n\t  uri: 'mongodb://mongodb/workspace-dev'\n\t},\n\t```\n\n5. Run `grunt:serve`, linking to mongodb container:  \n\t```sh\n\tdocker run -it --name web -v $PWD:/workspace -p 9000:9000 --link mongodb royling/mean-dev grunt serve\n\t```\n\n6. Open your browser and go to `http://localhost:9000`, start your work!  \n\tFor MacOS/Windows users, use the ip of VM which docker runs on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyling%2Fdocker-mean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froyling%2Fdocker-mean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froyling%2Fdocker-mean/lists"}