This repository contains the React front-end for the WTWR project—a weather-based clothing recommendation application designed to help users choose the perfect outfit for any weather condition.
- Built using Vite for fast development and seamless hot module replacement (HMR).
- Efficient handling of user interactions and clothing recommendations ensures smooth functionality.
- Weather Integration: Real-time weather data fetching and display
- Smart Clothing Recommendations: Suggests appropriate clothing based on current weather
- Temperature Unit Toggle: Switch between Fahrenheit and Celsius
- Clothing Management:
- Add new clothing items with image URLs
- View clothing details in a modal
- Delete unwanted items
- Categorize clothes by weather type
- Profile Page: Personal clothing collection management
- Responsive Modals: Interactive dialogs for adding, viewing, and deleting items
- React: Frontend framework for dynamic and scalable user interfaces.
- Vite: High-speed development environment for optimized builds.
- ESLint & Prettier: Enforces consistent code formatting and linting for clean, readable code.
- CSS: Provides responsive and visually appealing styling.
- JavaScript: Powers core functionality and interactivity.
- Header: Navigation and temperature unit toggle
- Main: Weather display and clothing recommendations
- Profile: Personal clothing collection management
- Modals: AddItemModal, ItemModal, and DeleteModal for item management
- WeatherCard: Displays current weather conditions
- ClothesSection: Organizes and displays clothing items
Before running the frontend, you must start the backend server:
-
Install JSON Server globally (if not already installed):
npm install -g [email protected]
Note: This project requires JSON Server version 0.17.0 to ensure compatibility with the reviewer's environment.
-
Start the backend server:
json-server --watch db.json --id _id --port 3001
-
The backend will be running at
http://localhost:3001
- Note: The delete functionality will only work when the backend server is running!
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Open
http://localhost:3000
in your browser
- The delete functionality requires the backend server to be running
- If items are not deleting, please ensure the backend server (json-server) is running on port 3001
- Both servers (frontend and backend) need to be running simultaneously for full functionality
📌 Maintained by: iiBamBlue 💡 Bootcamp: TripleTen 🔧 License: MIT License