{"id":17295718,"url":"https://github.com/bnb/step-by-step-express-workshop","last_synced_at":"2025-04-14T12:03:41.920Z","repository":{"id":74933678,"uuid":"182330203","full_name":"bnb/step-by-step-express-workshop","owner":"bnb","description":"A workshopified version of step-by-step-express","archived":false,"fork":false,"pushed_at":"2020-08-08T11:09:46.000Z","size":73,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T12:03:30.818Z","etag":null,"topics":["beginner","expressjs","node","nodejs","workshop"],"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/bnb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-04-19T21:57:30.000Z","updated_at":"2022-03-13T18:28:59.000Z","dependencies_parsed_at":"2023-07-11T14:46:43.274Z","dependency_job_id":null,"html_url":"https://github.com/bnb/step-by-step-express-workshop","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/bnb%2Fstep-by-step-express-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnb%2Fstep-by-step-express-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnb%2Fstep-by-step-express-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnb%2Fstep-by-step-express-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bnb","download_url":"https://codeload.github.com/bnb/step-by-step-express-workshop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877986,"owners_count":21176243,"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":["beginner","expressjs","node","nodejs","workshop"],"created_at":"2024-10-15T11:11:03.015Z","updated_at":"2025-04-14T12:03:41.894Z","avatar_url":"https://github.com/bnb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Step by Step Express\n\nThe intent of this project is to take you step-by-step through the process of building an Express app, documenting the changes as bite-sized chunks that you'll ideally be able to pick up and iterate upon rapidly.\n\n## Requirements\n\n- All steps:\n  - [Node.js](https://nodejs.org/en/)\n- Step Seven:\n  - [Docker app](https://www.docker.com/get-started)\n  - [Docker Hub account](https://hub.docker.com/)\n- Optional:\n  - [Azure account](https://aka.ms/step-by-step-express-azure) (free tier works just fine 💖)\n\n## Step Zero\n\n- Initalize the repo with the universal documents that we should have in every project\n\nRead more in the Step Zero [README.md](./step-zero/README.md)\n\n## Step One\n\n- Set up a very basic HTTP server + add the dependencies\n\nTo run the Step One code:\n\n```bash\n# make sure your current working directory is the main directory of this repo\ncd step-one\nnode app.js\n```\n\nRead more in the Step One [README.md](./step-one/README.md)\n\n## Step Two\n\n- Set up a very basic HTTP server + add the dependencies\n\nTo run the Step Two code:\n\n```bash\n# make sure your current working directory is the main directory of this repo\ncd step-two\nnode app.js\n```\n\nRead more in the Step Two [README.md](./step-two/README.md)\n\n## Step Three\n\n- Start parsing the querystring passed to the web app and – if the querystring `id` is present – passing that value to the API we're hitting, via the `request` module.\n\nTo run the Step Three code:\n\n```bash\n# make sure your current working directory is the main directory of this repo\ncd step-three\nnode app.js\n```\n\nRead more in the Step Three [README.md](./step-three/README.md)\n\n## Step Four\n\n- Add view rendering with `handlebars` (via `express-handlebars`)\n- Create our first view\n- Start rendering comics with handlebars on the `/comic` path\n\nTo run the Step Four code:\n\n```bash\n# make sure your current working directory is the main directory of this repo\ncd step-four\nnode app.js\n```\n\nRead more in the Step Four [README.md](./step-four/README.md)\n\n## Step Five\n\n- Call Express's `static` method to serve CSS\n- Create the `/static` directory + add our CSS file to it\n\nTo run the Step Five code:\n\n```bash\n# make sure your current working directory is the main directory of this repo\ncd step-five\nnode app.js\n```\n\nRead more in the Step Five [README.md](./step-five/README.md)\n\n## Step Six\n\n- Add Added error handling\n- Add port detection (`process.env.PORT`) that allows us to ship it to Auzre\n- Add `favicon.ico` to make browsers happy\n\nTo run the Step Six code:\n\n```bash\n# make sure your current working directory is the main directory of this repo\ncd step-six\nnode app.js\n```\n\nRead more in the Step Six [README.md](./step-six/README.md)\n\n## Step Seven\n\n- Dockerized\n  - Add `Dockerfile`\n  - Add `.dockerignore`\n- Add `host` variable to detect if `HOST` environment variable is defined, defaulting to `0.0.0.0` if not.\n  - Express now listens to the `host` as its host\n- Add `start` npm script, which can be called with `npm start`\n\nTo run the Step Seven code:\n\n```bash\n# make sure your current working directory is the main directory of this repo\ncd step-seven\nnode app.js\n```\n\nRead more in the Step Seven [README.md](./step-seven/README.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnb%2Fstep-by-step-express-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbnb%2Fstep-by-step-express-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnb%2Fstep-by-step-express-workshop/lists"}