{"id":20814135,"url":"https://github.com/branflake2267/debugging-dart-webserver","last_synced_at":"2026-05-17T01:46:41.601Z","repository":{"id":145733188,"uuid":"264581329","full_name":"branflake2267/debugging-dart-webserver","owner":"branflake2267","description":"Debugging, building and deploying a Dart HTTP web server to Elastic Beanstalk.","archived":false,"fork":false,"pushed_at":"2020-05-18T02:55:04.000Z","size":23,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-12T05:16:33.685Z","etag":null,"topics":["aws","dart","dart-web","dartlang","debugging-with-brandondonnelson","elasticbeanstalk","travis-ci","vscode"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/branflake2267.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-17T04:11:52.000Z","updated_at":"2022-11-04T11:15:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"16bef1dd-19ea-4aa0-ae1e-fbffe89f5d29","html_url":"https://github.com/branflake2267/debugging-dart-webserver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/branflake2267/debugging-dart-webserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branflake2267%2Fdebugging-dart-webserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branflake2267%2Fdebugging-dart-webserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branflake2267%2Fdebugging-dart-webserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branflake2267%2Fdebugging-dart-webserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/branflake2267","download_url":"https://codeload.github.com/branflake2267/debugging-dart-webserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branflake2267%2Fdebugging-dart-webserver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265233753,"owners_count":23731825,"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":["aws","dart","dart-web","dartlang","debugging-with-brandondonnelson","elasticbeanstalk","travis-ci","vscode"],"created_at":"2024-11-17T21:10:15.434Z","updated_at":"2026-05-17T01:46:36.582Z","avatar_url":"https://github.com/branflake2267.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Debugging \u0026 Deploying a Dart Web Server\nDebugging and deploying Dart HTTP web server to Elastic Beanstalk.\n\n[![Build Status](https://www.travis-ci.org/branflake2267/debugging-dart-webserver.svg?branch=master)](https://www.travis-ci.org/branflake2267/debugging-dart-webserver)\n\n[![Debugging Video Tutorial](https://img.youtube.com/vi/k_NmD1qmDcA/0.jpg)](https://www.youtube.com/watch?v=k_NmD1qmDcA)\n\n\n## Project Configuration \n| Setting | Value |\n| --- | --- |\n| Purpose | Debugging dart web server deployed in a multi-container docker config hosted on Elastic Beanstalk |\n| Server | Dart http web server |\n| Server Language | Dart |\n| Architecture | Dart |\n| IDE | Visual Studio Code |\n| CI | Travis CI |\n| Hosting | Elastic Beanstalk |\n| License | GPL v3 |\n| Tutorial | [Youtube Tutorial](https://www.youtube.com/watch?v=k_NmD1qmDcA) |\n\n\n\n## Debugging\n\n* Run `pub get` to initialize the project.\n\n### Debugging Server with Dart CLI\n\n* Run `dart ./server/lib/server.dart`\n\n### Debugging Server with VS Code\n\n* Use the VS Code Launcher `1. Launch Server`\n* http://localhost:8080 - ./ server\n* http://localhost:8080/api - ./api server\n\n### Debugging Docker Container\nMake sure things work locally in the `eb local run` runner!\n\n* Run `eb local run`\n* Open http://localhost:8080\n\n### Debugging Docker Containers\n| cmd | details |\n| --- | --- |\n| docker ps | list the docker containers and [container id]s |\n| docker exec -it [container id] bash| /bin/bash into the container. (The container name could be used as well.) |\n| eb local run | This will run the Dockerrun.aws.json multi-container configuration  |  \n\n\n\n## Init Reference\n\n### Install Dart\nThe [dart tools](https://dart.dev/get-dart) are required to use this project. \n\n### Install VS Code Dart Plugin\nInstall the Dart VS Code plugin. \n\nAdd the program launcher, to launch the web server.\n```\n{\n  \"version\": \"0.2.0\",\n  \"configurations\": [\n    {\n      \"name\": \"Launch Web Server\",\n      \"program\": \"lib/server.dart\",\n      \"request\": \"launch\",\n      \"type\": \"dart\"\n    }\n  ]\n}\n```\n\n### Configure AWS \u0026 EB CLI\nConfigure the AWS CLI and EB CLI utilities.\n\n* [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html)\n* [Configure AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html)\n* [EB CLI](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3.html)\n\nRun `aws configure` to configure the AWS credentials locally.\n\n#### Create Elastic Beanstalk Application\nSet up the Elastic Beanstalk application.\n\nRun `eb init` to configure the Elastic Beanstalk hosting config.\n\n* Choose the datacenter that makes sense to you. (I'll choose the default.)\n* Choose `Create New Application` and I use the default application name in this example.\n* Choose `Multi-container Docker` and the latest version.\n* Do not choose CodeCommit in this config.\n* Choose the SSH key to setup SSH, if you want to use SSH.\n\nThis will create a project file [./.elasticbeanstalk/config.yml](./.elasticbeanstalk/config.yml).\n\n#### Create Elastic Beanstalk Environment.\nSet up an Elastic environment for your application. \n\nRun `eb create dartserver-staging-v1` where `dartserver-staging-v1` is the enviornment name you choose. \n\n### Docker Config\nThe `Dockerrun.aws.json` will configure the docker container when deployed. \nIn this configuration I won't show how to build and deploy a Docker image to ECR.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbranflake2267%2Fdebugging-dart-webserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbranflake2267%2Fdebugging-dart-webserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbranflake2267%2Fdebugging-dart-webserver/lists"}