Weather Forecast Node.js is a simple weather website built using Node.js and the Express.js framework. It utilizes HBS templates for rendering dynamic HTML pages and incorporates Tailwind CSS for styling. With this application, users can search for the current weather conditions and the forecast for a specific city.
- City Search: Users can search for the current weather and forecast of any city.
- Responsive Design: The website is designed to be responsive and work seamlessly on various devices.
- Node.js: Server-side JavaScript runtime.
- Express.js: Web application framework for Node.js.
- HBS (Handlebars.js): Templating engine for rendering dynamic HTML pages.
- Tailwind CSS: Utility-first CSS framework for styling.
Follow these steps to get the project up and running on your local machine:
-
Clone the Repository:
git clone https://github.com/your-username/Weather-forcast-nodejs.git
-
Navigate to the Project Directory:
cd Weather-forcast-nodejs -
Install Dependencies:
npm install
-
Run the Application:
npm start
-
Css production build
npm build:css
The application will be accessible at
http://localhost:3000by default.
- Open your web browser and go to
http://localhost:3000. - Enter the name of the city in the search bar and click the "Search" button.
- View the current weather conditions and the forecast for the entered city.
Contributions are welcome!
- Thanks to WeatherApi for providing the weather data.
Happy forecasting!