Skip to content

mursalinir/Weathear-Report

Repository files navigation

Weather-Report

View Live

Overview

It is a web application built with VueJS framework. Here I used openweathermap API for collect realtime weather data of any city in the world. Here is a search box to search weather report of any city. Here Also I used conditional background to make the application attractive. For example if the weather is rainy then the background will show a rainy animation. Similarly sunny, cloudy, and snowy animated background changes depend on the weather. For the first time when the app will be load, there you can see two default location's weather "Dhaka" and "Tokyo", you can search for any city by typing the city name in search box.

Screenshots from app:

weather app

cloud weather:

cloud

rainy weather:

rain

clear weather:

clear

API Key

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Deploy Vue app with GitHub page:

Navigate to gitignore file and remove dist folder from the list:

step1

Create vue.config.js file in the root level of project and paste following code:

module.exports = {
  publicPath: '/Weathear-Report/'
}

Create path: /src/router/index.js/ and pase this code:

import { createWebHistory, createRouter } from 'vue-router'
import BillPage from '@/views/BillPage.vue'
import Products from '@/views/Products.vue'

const routes = [
	{
		path: '/',
		name: 'products',
		component: Products
	},
    {
        path: '/billPage',
        name: 'BillPage',
        component: BillPage
    }
];

const router = createRouter({
	history: createWebHistory('/Weathear-Report/'),
	routes,
});

export default router;

Build production version of the project:

npm run build

Stage all changes.

Commit all changes

Push dist folder to the gh-pages remote branch on GitHub:

git subtree push --prefix dist origin gh-pages

Done!

Releases

No releases published

Packages

No packages published