/Weather-API

Weather Website, Written in Typescript

Primary LanguageTypeScript

Weather-API

Weather website which has more than 200,000 cities data, API used from openweathermap

website uses Axios library for HTTP Requests

Configuration

Install Webpack for Axios library to make readable Typescript and also create webpack.config.js file and config it on your own

npm install webpack webpack-cli ts-loader -D
npm install Typescript -D 

Configuration of webpack.config.js

const path = require('path');

module.exports = {
  entry: './src/app.ts',
  module: {
    rules: [
      {
        test: /\.tsx?$/,
        use: 'ts-loader',
        exclude: /node_modules/,
      },
    ],
  },
  resolve: {
    extensions: ['.tsx', '.ts', '.js'],
  },
  output: {
    filename: 'app.js',
    path: path.resolve(__dirname, 'dist'),
  },
};

for more details you can visit Webpack Server Configuration and Webpack for Typescript

Languages Used

  • HTML
  • SCSS
  • Typescript / Axios Library