Skip to content

Add backend message loading to Home component and update environment … #4

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

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

SamuelCarmona83
Copy link

This pull request includes changes to improve the front-end functionality and configuration of the project. The most important changes include updating environment variables, enhancing the Home component to fetch data from the backend, and updating the store reducer to handle new actions.

Environment Variables Update:

  • .env.example: Updated environment variable names to use the VITE_ prefix for front-end compatibility.

Front-End Enhancements:

  • src/front/pages/Home.jsx: Enhanced the Home component to fetch a message from the backend and display it, including error handling and conditional rendering based on the store state.

Store Updates:

  • src/front/store.js: Added a new action type set_hello in the store reducer to handle the fetched message from the backend.

@rosinni rosinni merged commit dbd9a96 into 4GeeksAcademy:main Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants