Skip to content
View Sarthak-cse's full-sized avatar

Block or report Sarthak-cse

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
Sarthak-cse/README.md

Weather App (Any Location)

Simple full-stack weather app (Node + Express backend, static frontend) that lets users get current weather for any city.

Features

  • Search weather by city name
  • Backend proxies requests to OpenWeatherMap (keeps API key secret)
  • Small, easy-to-read codebase ready to upload to GitHub

Setup (locally)

  1. Clone or copy files to a folder.
  2. Create a file named .env in the project root with:
    OPENWEATHER_API_KEY=your_openweathermap_api_key_here
    
  3. Install dependencies:
    npm install
    
  4. Start the server:
    npm start
    
  5. Open http://localhost:3000 in your browser.

Deployment

  • This can be deployed to services like Render, Heroku, Railway, Vercel (serverless), etc.
  • Make sure to set the OPENWEATHER_API_KEY environment variable in your hosting provider.

Notes

  • The app queries OpenWeatherMap Current Weather API (/data/2.5/weather) and returns metric units.
  • You can modify public/app.js to change UI or show more fields.

Popular repositories Loading

  1. Sarthak-cse Sarthak-cse Public

    Config files for my GitHub profile.

    JavaScript

  2. Basic-Calculator Basic-Calculator Public

    HTML