{"id":15355322,"url":"https://github.com/astagi/tdd-with-vue","last_synced_at":"2026-02-02T10:08:00.341Z","repository":{"id":39204529,"uuid":"244668612","full_name":"astagi/tdd-with-vue","owner":"astagi","description":"✌🏻TDD example with Vue - Image placeholder component fetching images from LoremPicker.","archived":false,"fork":false,"pushed_at":"2022-12-12T03:37:23.000Z","size":4866,"stargazers_count":1,"open_issues_count":23,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-13T04:04:54.521Z","etag":null,"topics":["placeholder","tdd","tutorial","vue"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/astagi.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}},"created_at":"2020-03-03T15:13:27.000Z","updated_at":"2020-06-09T08:19:15.000Z","dependencies_parsed_at":"2023-01-27T12:46:05.655Z","dependency_job_id":null,"html_url":"https://github.com/astagi/tdd-with-vue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/astagi/tdd-with-vue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astagi%2Ftdd-with-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astagi%2Ftdd-with-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astagi%2Ftdd-with-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astagi%2Ftdd-with-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astagi","download_url":"https://codeload.github.com/astagi/tdd-with-vue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astagi%2Ftdd-with-vue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29009717,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T08:40:12.472Z","status":"ssl_error","status_checked_at":"2026-02-02T08:40:10.926Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["placeholder","tdd","tutorial","vue"],"created_at":"2024-10-01T12:23:57.276Z","updated_at":"2026-02-02T10:08:00.326Z","avatar_url":"https://github.com/astagi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build Vue Image Placeholder using TDD\n\n[![Build Status](https://travis-ci.org/astagi/tdd-with-vue.svg?branch=master)](https://travis-ci.org/astagi/tdd-with-vue) [![codecov](https://codecov.io/gh/astagi/tdd-with-vue/branch/master/graph/badge.svg)](https://codecov.io/gh/astagi/tdd-with-vue)\n\nThis is the source code for [Writing your first Vue component using TDD](https://dev.to/astagi/writing-a-vue-component-using-tdd-a-gentle-introduction-4n2d). In this tutorial we'll learn the basic concepts of Test Driven Development (TDD) building a simple, reusable Vue component with Typescript called `ImagePlaceholder` to fetch images from [LoremFlickr](https://loremflickr.com/), a simple images service to get random images specifying parameters like width, height, filters, categories.. inside a url.\n\nFor example to get an image `320x240` from `Brazil` or `Rio` you can fetch [https://loremflickr.com/320/240/brazil,rio](https://loremflickr.com/320/240/brazil,rio)\n\n\u003cimg src=\"https://loremflickr.com/320/240/brazil,rio\"/\u003e\n\nThere are a lot of options in LoremFlickr, in this tutorial we'll focus on developing a simple component to get an image from LoremFlickr with a specific `width` and `height` and filtering by `categories`.\n\n## Use it in your app\n\n```ts\nimport ImagePlaceholder from 'vue-image-placeholder';\n```\n\n```html\n\u003cImagePlaceholder width=500 height=250 images=\"dog\" /\u003e\n```\n\nProps `height` and `images` are optional.\n\n## Project setup for development\n\n```sh\nyarn install\n```\n\n### Compiles and minifies for production\n\n```sh\nyarn build\n```\n\n### Run unit tests\n\n```sh\nyarn test:unit\n```\n\n### Lints and fixes files\n\n```sh\nyarn lint\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastagi%2Ftdd-with-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastagi%2Ftdd-with-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastagi%2Ftdd-with-vue/lists"}