Skip to content

Sample State

srajiang edited this page Jan 8, 2020 · 8 revisions
{
entities: {
    users: {
      21: {
        id: 1,
        username: "beyonsay"
      },
      2: {
        id: 2,
        username: "seeyah"
      },
      8: {
        id: 3,
        username: "m&m"
      }
    },
    songs: {
      3: {
        title: "It's Oh So Quiet",
        body: ["It's oh so quiet, shh, shh..."] //...insert rest of song body here
        album: "Post",
        artist: "Bjork",
        about: "Insert about text here"
      }
    },
    artists: {
      1: {
         name: "Bjork",
         id: 1,
      }
    }
    albums: {
      99: {
          title: Post,
          releaseDate: 1995,
          artistId: 1
      }
    },
    annotations: {
      42: {
        body: "Bjork was dating [so and so] at the time and this is about him...",
        referentId: 73,
        annotatorId: 21
      },
      88: {
        body: "Here Bjork is talking about the ecstatic feeling being newly in
        love can bring about...",
        referentId: 73,
        annotatorId: 21
      }
    },
    referents: {
      73: {
        "You've never been so nuts about a guy, you want to laugh you wanna cry"  
      },
      71: {
        "The sky caves in The devil cuts loose"
      }
    }
  },
  ui: {
    loading: true/false
  },
  session: {
    currentUserId: 3
  },
  errors: {
    session: ["Incorrect username/password combination"],
    songForm: ["body cannot be blank"],
  }
}

This is the wiki for the genius app clone. Please use the bulleted legend to view the various design documents related to this project!

Clone this wiki locally