Welcome to Dayana's Weather Forecast App! This application provides current weather information and additional data for a given city.
- Clone the repository
- Run
npm installto install dependencies - Run
nodemon app.jsto start the server - Open your browser and go to http://localhost:3000
- Express: Fast, unopinionated, minimalist web framework for Node.js.
- HTTPS: Secure, robust, and essential package for enabling secure communication over the web in Node.js applications.
- bcrypt: password-hashing function designed to securely hash passwords for storage
- path: provides utilities for working with file and directory paths
The server runs on port 3000.
1.Google Maps Geocoding API:
Endpoint: https://maps.googleapis.com/maps/api/geocode/json Usage: Converts a city name to latitude and longitude.
2.OpenWeatherMap API:
Endpoint: https://api.openweathermap.org/data/2.5/weather Usage: Gets current weather details for a specific city.
1.Log in or sign in 2.If you are a user, click the "Get Current Weather" button. 3.See the results.
To log in as an admin Login: Dayana Password: 123abc
You will be redirected to the admin panel, where you can delete the users by their email.