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

Alina: individual project week 1-2 #368

Open
AlinaTaoRao opened this issue May 13, 2022 · 4 comments
Open

Alina: individual project week 1-2 #368

AlinaTaoRao opened this issue May 13, 2022 · 4 comments

Comments

@AlinaTaoRao
Copy link
Contributor

AlinaTaoRao commented May 13, 2022

wij-chat-frontend
wij-chat-backend
connected issue:individual project deliverable

Study Plan

@AlinaTaoRao AlinaTaoRao added this to the individual project milestone May 13, 2022
@AlinaTaoRao AlinaTaoRao self-assigned this May 13, 2022
@AlinaTaoRao
Copy link
Contributor Author

AlinaTaoRao commented May 13, 2022

Week 1

wij-chat screenshot 2022-05-13 at 15 50 55

Check-In

I Need Help With:

React hooks, useEffect

how to set repo? I generated strapi app and react app in one folder(wij-chat), will that be an issue when deploy?
wij-chat
/backend
/ frontend

What went well?

Even though it is a hard journey, I completed basic features of my chat app.

What went less well?

Predict how react will work.

Deploy app. no idea.

Lessons Learned

Go to read doc.

Sunday Prep Work

@AlinaTaoRao
Copy link
Contributor Author

AlinaTaoRao commented May 19, 2022

Week 2

Check-In

I Need Help With:

catch and throw error. I wrote response check in each fetch(), but sometimes there's error in console, but no error display in html template. what should i do to fix this?
error fn
error html

What went well?

  • deploy backend on Heroku.

  • writing frontend code with react.

  • chat features

    • sign up
    • sign in
    • send msg
    • create new ch
    • switch among channels.
  • What went less well?

Lessons Learned

when you have multiple fetch() at one webpage, fetch() order is important.

Sunday Prep Work

@gelilaa
Copy link
Member

gelilaa commented May 20, 2022

catch and throw error. I wrote response check in each fetch(), but sometimes there's error in console, but no error display in html template. what should i do to fix this?

I can see you are sending the error msg with your api. the problem might be because of Logical Operators. Use console.log to see in what point of the program you get the error. you can make a useState for the error and try to render it.

@AlinaTaoRao
Copy link
Contributor Author

the problem might be because of Logical Operators. Use console.log to see in what point of the program you get the error. you can make a useState for the error and try to render it.

@gelilaa
Thanks! 🫶

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

2 participants