tamaschreurs / barney-travels

https://tamaschreurs.github.io/barney-travels/
0 stars 0 forks source link

Barney's Travels

React website where you can read about all of Barney's adventures, see his photos and get an overview of all the places he has visited.

Demo Data Documentation

This documentation provides a detailed overview of the data structure and content that needs to be included in the final database for a project involving albums and blog posts. The data is organized into two primary JSON files: albums.json and blogPosts.json.

1. Albums Data (albums.json)

The albums.json file contains information about various photo albums. Each album has a unique ID, a collection of picture URLs, a title, and start and end dates. The data structure is as follows:

Data Structure

Example

{
  "albums": [
    {
      "id": 1,
      "pictures": [
        "https://picsum.photos/id/444",
        "https://picsum.photos/id/359",
        "https://picsum.photos/id/357",
        "https://picsum.photos/id/772"
      ],
      "title": "Mountain Adventure",
      "start_date": "20191026",
      "end_date": "20191203"
    },
    {
      "id": 2,
      "pictures": [
        "https://picsum.photos/id/360",
        "https://picsum.photos/id/250",
        "https://picsum.photos/id/458",
        "https://picsum.photos/id/12"
      ],
      "title": "Urban Exploration",
      "start_date": "20201101",
      "end_date": "20201207"
    }
    // Additional album objects...
  ]
}

2. Blog Posts Data (blogPosts.json)

The blogPosts.json file contains information about various blog posts. Each blog post has a unique ID, a list of associated countries, a title, content, associated albums, a publication date, a start date, and an end date. The data structure is as follows:

Data Structure

Example

{
  "blogPosts": [
    {
      "id": 1,
      "countries": ["840"],
      "title": "Exploring the Grand Canyon",
      "content": "The Grand Canyon, a colossal chasm carved by the Colorado River...",
      "albums": [7],
      "publication_date": "20160518",
      "start_date": "20190930",
      "end_date": "20191121"
    },
    {
      "id": 2,
      "countries": ["392"],
      "title": "A Journey Through Tokyo",
      "content": "In the heart of Japan, Tokyo stands as a beacon of modernity fused with age-old traditions...",
      "albums": [1, 9, 3],
      "publication_date": "20210615",
      "start_date": "20160830",
      "end_date": "20161101"
    }
    // Additional blog post objects...
  ]
}

Summary

The final database should include two tables or collections to store the data from the albums.json and blogPosts.json files. The albums table/collection will store information about photo albums, including their IDs, picture URLs, titles, and date ranges. The blogPosts table/collection will store information about blog posts, including their IDs, associated countries, titles, content, associated albums, publication dates, and date ranges for the events or journeys described.

By following this structure, developers can ensure the data is organized and easily accessible for any application or website that utilizes this information.