As a developer, I need to build my database up with some seed data to make a mock up of some user information
AC
WHEN I look at my database on firebase
THEN I should see all the correct json files and have them structured correctly
Development
Create a db folder at the root of your project
In db create a base.json, user.json, restroomType.json, business.json, amenities.json, amenityType.json, businessReview.json, and businessRating.json
In base.json create an object that has keys of each of the other file names listed and a value of "whatever" for each.
In user.json create an object, then create a key of "user1" and the value is an object with key/values of "imageUrl"/"someurl.com", "name"/"Greg", "city"/"Nashville", "state"/"TN","createdDate"/"07042019"
In restroomType.json create an object, then create a key of "restroom0" and the value is an object of key/values of "restroomType"/"Unisex", "hex"/"U+26A5", a new key of "restroom1" and the value is an object of key/values of "restroomType"/"Male","hex"/"U+2642", a new key of "gender2" and the value is an object of key/values "restroomType"/"Female", "hex"/"U+2640".
In business.json create an object then create a key of "business1" and the value is an object of key/values of "yelpId"/"somethingToFind", "zip"/"zipForTheBusiness"
In businessReview.json create an object then create a key of "businessReview1" and the value is an object of key/values of "uid"/"FirebaseUserId", "businessId"/"business1", "timestamp"/"07052019", "text"/"Worst Bathroom Ever"
In businessRating.json create an object then create a key of "businessCleanliness1" and the value is an object of key/values of "uid"/"FirebaseUserId", "businessId"/"business1", and "cleanliness"/3, "decor"/2, "restroomTypeId"/"restroom1", "timeStamp"/100318"
In "amenities.json" create an object then create a key of "amenities1" and the value is an object of key/values of "businessId"/"business1", "typeId"/"type1", and "status"/true.
In "amenityType.json" create an object then create a bunch of key/values as "type1"/"changingTable", "type2"/"automaticToilet"/ etc etc
User Story
As a developer, I need to build my database up with some seed data to make a mock up of some user information
AC
WHEN I look at my database on firebase THEN I should see all the correct json files and have them structured correctly
Development
db
folder at the root of your projectdb
create abase.json
,user.json
,restroomType.json
,business.json
,amenities.json
,amenityType.json
,businessReview.json
, andbusinessRating.json
base.json
create an object that has keys of each of the other file names listed and a value of "whatever" for each.user.json
create an object, then create a key of "user1" and the value is an object with key/values of "imageUrl"/"someurl.com", "name"/"Greg", "city"/"Nashville", "state"/"TN","createdDate"/"07042019"restroomType.json
create an object, then create a key of "restroom0" and the value is an object of key/values of "restroomType"/"Unisex", "hex"/"U+26A5", a new key of "restroom1" and the value is an object of key/values of "restroomType"/"Male","hex"/"U+2642", a new key of "gender2" and the value is an object of key/values "restroomType"/"Female", "hex"/"U+2640".business.json
create an object then create a key of "business1" and the value is an object of key/values of "yelpId"/"somethingToFind", "zip"/"zipForTheBusiness"businessReview.json
create an object then create a key of "businessReview1" and the value is an object of key/values of "uid"/"FirebaseUserId", "businessId"/"business1", "timestamp"/"07052019", "text"/"Worst Bathroom Ever"businessRating.json
create an object then create a key of "businessCleanliness1" and the value is an object of key/values of "uid"/"FirebaseUserId", "businessId"/"business1", and "cleanliness"/3, "decor"/2, "restroomTypeId"/"restroom1", "timeStamp"/100318"