As a developer, I need to be able to perform full CRUD on CREATE BEAUTY.
AC
N/A
Dev Notes
In authData.js
[ ] import firebase and firebase/auth
[ ] make getUid function
[ ] export getUid
In lookData.js
[ ] import axios and apiKeys
[ ] make baseUrl variable that will hold my apiKey info
[ ] create getLooksByUid that will pass the uid and make a new Promise that will grab the looks that have the same uid of baseUrl
[ ] if so, then create a variable called looks that will house all of the look data that it's getting from firebase, create a condition that will take the reponse and put that in a variable called newLook and push all looks in the looks array, resolve looks
[ ] catch errors
[ ] create getSingleLook, add, update, and delete axios calls and export the names
In connection.js
[ ] import firebase and firebaseConfig
[ ] paste in firebaseApp function from previous project and export function
In ratings.js
[ ] import axios and apiKeys
[ ] make baseUrl variable that will hold my apiKey info
[ ] create getRatingdByUid that will pass the uid and make a new Promise that will grab the ratings that have the same uid of baseUrl
[ ] If so, then create a variable called looks that will house all of the look data that it's getting from firebase, create a condition that will take the response and put that in a variable called newRating and push all ratings in the ratings array, resolve ratings
Story
AC
N/A
Dev Notes
In authData.js
In lookData.js
In connection.js
[ ] import firebase and firebaseConfig
[ ] paste in firebaseApp function from previous project and export function
In ratings.js