Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IN CLASS: React-Pinterest Project #112

Closed
drteresavasquez opened this issue Nov 11, 2020 · 4 comments
Closed

IN CLASS: React-Pinterest Project #112

drteresavasquez opened this issue Nov 11, 2020 · 4 comments

Comments

@drteresavasquez
Copy link
Contributor

Here is the overview of what we decided as a class to complete for our React Pinterest project

Let's use this thread for questions and discussions related to this project

@drteresavasquez
Copy link
Contributor Author

@nss-evening-cohort-13/students here also is a tool that can help you create mock data! There is even a firebase export setting! https://www.mockaroo.com/

Screen Shot 2020-11-10 at 9 55 05 PM
Screen Shot 2020-11-10 at 9 55 14 PM

@drteresavasquez
Copy link
Contributor Author

drteresavasquez commented Nov 16, 2020

Here is a list of the things we need to do in order to complete the React-Pinterest project: https://github.com/nss-evening-cohort-13/react-pinterest/blob/main/Monday.md

Tonight, we will work through creating forms to create the boards that give users the ability to either paste a URL or upload an image using Firebase storage. The code for the upload can be reviewed here and we will walk through the process in class.

Quick gif on how to access FB Storage:

fbstorageaccess

@drteresavasquez
Copy link
Contributor Author

drteresavasquez commented Nov 17, 2020

@nss-evening-cohort-13/students I figured out our issue. The board form was being rendered before the props were passed because we are making an api call, so....we could either do a loader to give the API call time to do its thing, or we could check state to make sure that the boards object is not empty like this...this code can replace the BoardForm call in the SingleBoards.js file:
{ Object.keys(board).length && <BoardForm board={board} onUpdate={this.getBoardInfo} />}

@drteresavasquez
Copy link
Contributor Author

For some who are getting 400 errors for your firebase uploads, it is possible that this has happened to you as it happened to me as well. It may be best to only store images. I had gifs in mine, which I think pushed me over the limit:

Screen Shot 2020-11-17 at 1 18 01 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant