Skip to content

This project is a weather app with user registration and history, allowing users to search for weather data of cities, save it to their history, and view their previously stored weather data. It provides a convenient and personalized experience for tracking and accessing weather information.

Notifications You must be signed in to change notification settings

Gunjan1116/weather_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

weather_app

Deployed Links

How to Use

  • First User Need to Register by entering name,email,city name and password.
  • Then User need to login by entering email and password which they have given during register.
  • Then they can search the city name and click the button search to get current weather data of that search city.
  • User can click on save to History button to save the data in history.
  • User can click on Get Previous Store Data at navbar to see all history data which is saved by that paticular user.

All Routes

User Route

  • backend_link/user/register
    • method:"POST"
    • body:
      • name:String,
      • email:String,
      • currentLocation:String,
      • password:String
    • response:{"msg":"error while registering"}
  • backend_link/user/login
    • method:"POST"
    • body:
      • email:String,
      • password:String
    • response:{"msg":"Login Successfully","token":token}

Weather Route

  • backend_link/weather/current?q=${city_name}
    • method:"GET"
    • response:{"msg":Current weather data for ${q} city,"data":allData}
  • backend_link/weather/save
    • method:"POST"
    • body:
      • cityName:String,
      • temperature:Number,
      • date:String,
      • time:String,
      • userId:String
    • provide token in headers
    • response:{"msg":"Data is saved to history"}
  • backend_link/weather/history
    • method:"GET"
    • provide token in headers
    • response:{"msg":"previous data","data":reqUser}

About

This project is a weather app with user registration and history, allowing users to search for weather data of cities, save it to their history, and view their previously stored weather data. It provides a convenient and personalized experience for tracking and accessing weather information.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published