{"id":26140775,"url":"https://github.com/andybarron/nodejs-docker-starter","last_synced_at":"2026-05-09T06:09:06.805Z","repository":{"id":49694138,"uuid":"216740846","full_name":"andybarron/nodejs-docker-starter","owner":"andybarron","description":"Build a NodeJS app without spending time on toolchain setup","archived":false,"fork":false,"pushed_at":"2022-02-12T21:07:05.000Z","size":233,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T02:57:17.063Z","etag":null,"topics":["docker","docker-compose","nodejs"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/andybarron.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":"2019-10-22T06:37:57.000Z","updated_at":"2020-02-18T04:15:01.000Z","dependencies_parsed_at":"2022-09-06T23:40:08.766Z","dependency_job_id":null,"html_url":"https://github.com/andybarron/nodejs-docker-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/andybarron/nodejs-docker-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andybarron%2Fnodejs-docker-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andybarron%2Fnodejs-docker-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andybarron%2Fnodejs-docker-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andybarron%2Fnodejs-docker-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andybarron","download_url":"https://codeload.github.com/andybarron/nodejs-docker-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andybarron%2Fnodejs-docker-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267998042,"owners_count":24178444,"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-31T02:00:08.723Z","response_time":66,"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":["docker","docker-compose","nodejs"],"created_at":"2025-03-11T02:57:19.127Z","updated_at":"2026-05-09T06:09:01.777Z","avatar_url":"https://github.com/andybarron.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nodejs-docker-starter\n\n_Build a NodeJS app without spending time on toolchain setup_\n\n[![GitHub: AndyBarron/nodejs-docker-starter][github-badge]][github-link]\n\n## Requirements\n\n- [Install **Docker**](https://docs.docker.com/install/)\n- [Install **Docker Compose**](https://docs.docker.com/compose/install/)\n- Ensure you have necessary files and directories on your machine:\n\n```\ntouch ~/.gitignore \u0026\u0026 mkdir -p ~/.ssh/\n```\n\n- **You _do not_ need to install NodeJS, NPM, or yarn!** The development container\n  will automatically install them.\n\n## Getting started\n\n### With VS Code (recommended)\n\n1. Open the repository directory with VS Code: **File \u003e Open Workspace...**\n2. Install the [**\"Remote - Containers\" extension**][remote-containers-ext]\n   (and, if prompted, reload VS Code)\n3. Click the **green remote icon on the bottom left**, or open the\n   **Command Palette** with **Command+Shift+P**/**Control+Shift+P**\n4. Select **\"Remote-Containers: Reopen in Container\"**\n5. If the VS Code terminal isn't visible, open it with **Command+~** or\n   **Control+~**\n6. If the terminal isn't showing a Bash prompt, open one with the\n   **\"+\" button** next to the terminal dropdown menu\n7. Develop as usual\n\n### Without VS Code\n\n**The VS Code method is recommended over this one. It will automatically\ninstall extensions (in the container) to format code with `prettier`\nwhen saved and display errors from ESLint (if you add a config file for\nit).**\n\n1. From the repository root directory, run **`docker-compose up -d`**\n2. Open a shell in the container with\n   **`docker-compose exec dev bash`**\n3. When you're done, run **`docker-compose down`** (from the repository\n   root)\n\n### Running your app\n\nFrom inside the development container, use **`yarn watch`** to run your\napp. It will restart automatically when you modify any code in the `src/`\ndirectory.\n\n### Using Git\n\nYou can use Git over SSH normally from within the development container.\nConfiguration files for Git and SSH (`~/.gitconfig` and `~/.ssh/`) are\nmounted into the container from the host machine. If you don't want this,\nremove those lines from the `services.dev.volumes` section of\n`docker-compose.yml`.\n\n## Included NPM scripts\n\n- **`yarn start`** - run the app\n- **`yarn watch`** - run the app in development mode, restarting on changes\n- **`yarn format`** - automatically format all source files using `prettier`\n\n## Default setup notes\n\n- Port 3000 in the container is exposed to the host automatically. A\n  web server (Express, etc.) listening on port 3000 will be reachable\n  on the host machine at [`http://localhost:3000`](http://localhost:3000).\n\n[github-badge]: https://img.shields.io/badge/GitHub-AndyBarron/nodejs--docker--starter-informational?logo=github\u0026style=flat-square\n[github-link]: https://github.com/AndyBarron/nodejs-docker-starter\n[remote-containers-ext]: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandybarron%2Fnodejs-docker-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandybarron%2Fnodejs-docker-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandybarron%2Fnodejs-docker-starter/lists"}