Skip to content

Instantly share code, notes, and snippets.

@ichisadashioko
Created August 27, 2025 10:14
Show Gist options
  • Save ichisadashioko/8d4fe95d4ba4989ecfe75384c2eb38b6 to your computer and use it in GitHub Desktop.
Save ichisadashioko/8d4fe95d4ba4989ecfe75384c2eb38b6 to your computer and use it in GitHub Desktop.

🐾 Instructions for Collecting Pet Images & Writing Fake Profiles

1. Folder Structure (to keep things clean)

/assets
   /images
      /cats
      /dogs
   /profiles
      cats.json
      dogs.json

2. Collecting Pet Images

Goal: 20–30 pet images (cats & dogs), clear and cute.

  • Rules:

    1. Only square-ish or portrait images (easier for swipe cards).

    2. File format = .jpg or .png.

    3. Rename files clearly:

      • dog_01.jpg, dog_02.jpg
      • cat_01.jpg, cat_02.jpg
  • Save them into:

    • /assets/images/dogs/
    • /assets/images/cats/

3. Writing Fake Profiles (JSON Spec)

Each pet profile = one JSON object. Fields:

{
  "id": 1,
  "name": "Bella",
  "species": "dog",
  "breed": "Golden Retriever",
  "age": 3,
  "gender": "female",
  "location": "Hanoi",
  "bio": "Loves long walks in the park and chasing tennis balls. Looking for a playful buddy!",
  "image": "assets/images/dogs/dog_01.jpg"
}

4. JSON File Example

cats.json

[
  {
    "id": 1,
    "name": "Mochi",
    "species": "cat",
    "breed": "British Shorthair",
    "age": 2,
    "gender": "male",
    "location": "Ho Chi Minh City",
    "bio": "Lazy afternoon napper, but secretly a hunter at night.",
    "image": "assets/images/cats/cat_01.jpg"
  },
  {
    "id": 2,
    "name": "Luna",
    "species": "cat",
    "breed": "Siamese",
    "age": 1,
    "gender": "female",
    "location": "Da Nang",
    "bio": "Curious and loves climbing curtains. Friendly with other cats.",
    "image": "assets/images/cats/cat_02.jpg"
  }
]

dogs.json

[
  {
    "id": 1,
    "name": "Max",
    "species": "dog",
    "breed": "Beagle",
    "age": 4,
    "gender": "male",
    "location": "Hanoi",
    "bio": "Energetic sniff master. Looking for friends to go on adventures!",
    "image": "assets/images/dogs/dog_01.jpg"
  },
  {
    "id": 2,
    "name": "Bella",
    "species": "dog",
    "breed": "Golden Retriever",
    "age": 3,
    "gender": "female",
    "location": "Hai Phong",
    "bio": "Sweet and caring, always ready for a cuddle.",
    "image": "assets/images/dogs/dog_02.jpg"
  }
]

5. How Many to Make

  • 10–15 cats
  • 10–15 dogs
  • Total: ~25–30 profiles

6. Delivery

  • Zip the whole /assets folder.
  • Make sure JSON files and image paths match correctly.
  • Test by opening JSON in a text editor β†’ no red error highlights.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment