Run npm install in project directory. This will install server-related dependencies such as express.
cd clientand runnpm install. This will install client dependencies (React).
Run npm start in project directory to start the Express server on port 5001
- In another terminal, do
cd clientand runnpm run devto start the client in development mode with hot reloading in port 5173.
Function
This is a weather app that accepts search terms in the format of city name or city/country name
-
once the "get weather button is clicked, the weather information is displayed.
-
by default the city displayed will always be Paris, FR
-
once the city weather information is displayed the user has the option to bookmark the selected city
-
when the user clicks on the bookmark the up-to-date weather data for that location is displayed again
-
@vitejs/plugin-react uses Babel for Fast Refresh
-
@vitejs/plugin-react-swc uses SWC for Fast Refresh