Skip to content

A React project focused on state management, and API interactions for fetching and posting data. Features include a design-aligned UI, sorted thought display by recency, like count for each thought, a form for new thoughts, and a like functionality.

Notifications You must be signed in to change notification settings

BeckieMorton/project-happy-thoughts-vite

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Happy Thoughts

Week 7 - Practice your React state skills by fetching and posting data to an API in a "twitter" like app called "Happy Thoughts".

The Problem

Describe how you approached to problem: understanding the useEffect hook was more difficult for me that the useState hook that was studied last week. While going through the content, I coded along with the code coaches and compelted the team exercise before class.

My main problem in this app was to get the like/heart counter working. I had difficulty understanding the correct syntax for a fetch POST request and spent many hours practicing. I still do not understand in which line of code the actual data is sent to the API on POST.

How did you plan?: I first created my initial component structure, I decided to keep one .css file. When I decided to add the time/date information I created a new component.

What technologies did you use?: HTML5, CSS3, React, with Editor: VS Code

If you had more time, what would be next?: I would love to add a counter for the user to show how many likes they have made. This would remain updated even when they closed the program.

Week 15 UPDATE: Linked to my own Mongo Database using my API

During our backend study we created our own database for Happy Thoughts with MongoDb, mongoose, postman and Mongo Atlas.

I deployed the backend here: https://project-happy-thoughts-api-n0pa.onrender.com/

The corresponding Week 15 project repo can be found here: https://github.com/BeckieMorton/project-happy-thoughts-api

View it live

https://wk7-project-happy-thoughts-cc666f.netlify.app/

Screenshots

Screenshot of Happy Thoughts

Instructions

See instructions of this project

About

A React project focused on state management, and API interactions for fetching and posting data. Features include a design-aligned UI, sorted thought display by recency, like count for each thought, a form for new thoughts, and a like functionality.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.8%
  • CSS 16.4%
  • HTML 6.8%