WTWR (What to Wear?) is a full-stack application that helps users make informed clothing choices based on daily weather forecasts. This repository contains the front-end codebase, which provides a responsive and user-friendly interface to display weather data and recommended clothing items.
- Dynamic Weather Integration: Fetches and displays real-time weather data through API calls.
- Clothing Recommendations: Suggests suitable attire based on current weather conditions.
- Responsive Design: Optimized for seamless usability across desktop and mobile devices.
- User Authentication: Supports secure login and personalized recommendations.
- Live Website: WTWR Front-End
- Back-End Repository: WTWR Back-End
- React: Front-end library for building the user interface.
- CSS: Styling for responsive and visually appealing designs.
- Fetch API: For API calls to fetch weather and clothing data.
- React Router: Enables navigation between pages.
- Node.js (v14 or higher)
- npm (Node Package Manager)
-
Clone the repository:
git clone https://github.com/bryzle/se_project_react.git
-
Navigate to the project directory:
cd se_project_react -
Install dependencies:
npm install
-
Create a
.envfile in the project root and add the back-end API URL:REACT_APP_API_URL=https://wtwr.brandonlum.com
-
Start the development server:
npm start
The application will run on
http://localhost:3000.
- View Weather Forecasts: Access real-time weather information.
- Get Clothing Suggestions: Receive tailored clothing recommendations based on the forecast.
- Secure Access: Log in for a personalized experience.
src/
├── assets/ # Images and icons
├── components/ # Reusable React components
│ ├── Header/ # Navigation header
│ ├── Footer/ # Footer with links
│ ├── Weather/ # Weather display components
│ ├── Clothing/ # Recommended clothing components
├── pages/ # Page-level components
├── utils/ # Utility functions (e.g., API calls)
├── App.js # Main application file
├── index.css # Global styles
└── index.js # Entry point