GithubHelp home page GithubHelp logo

openweatherapi's Introduction

WeatherApp

Description

This web project is designed using Bootstrap for a responsive and user-friendly layout. It comprises three main sections: the "Home" page providing an overview of the project, the "Quotes" page featuring two APIs for generating random quotes and cat facts, and the "Weather" page where users can retrieve weather information for any city using the OpenWeatherAPI.

The application utilizes three APIs: OpenWeatherMap for weather data, QuotesOnDesignAPI for random quotes from design, and CatFactNinjaAPI for interesting cat facts. These APIs are integrated to enhance the user experience by providing dynamic content.

The backend is built with Express, and EJS is used for templating, ensuring efficient server-side rendering and a seamless interaction for users.

Dependencies

  1. Express (https://www.npmjs.com/package/express);
  2. Axios (https://www.npmjs.com/package/axios)
  3. dotenv (https://www.npmjs.com/package/dotenv)
  4. Embedded JavaScript templates(EJS) (https://www.npmjs.com/package/ejs);

Used APIs

  1. OpenWeatherMap API (https://openweathermap.org/api);
  2. QuotesOnDesign API (https://quotesondesign.com/wp-json/wp/v2/posts/);
  3. CatFact Ninja API (https://catfact.ninja/fact);

Before Installation

Before installing this application, ensure that you have GitBash, Node.js, and Node Package Manager(npm) installed on your machine.

Installation

  1. Create a folder where you want to install this project.
  2. Open the created folder with GitBash.
  3. Use the following commands in GitBash to download the project:
https://github.com/s3r1msultan/openweatherapi.git
cd openweatherapi
  1. Install all dependencies:
npm install
  1. Create .env file with API keys and URLs
  2. Start the server with:
npm start
  1. The server runs on port 3000. Open the project in your browser by navigating to localhost:3000.

After completing these steps, you will land on the Home Page.

To view the project, navigate to the "Weather" "Quotes" tabs, or visit localhost:3000/weather / localhost:3000/quotes.

openweatherapi's People

Contributors

s3r1msultan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.