Skip to content

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


🌀️ Weather App

Live Demo: https://bitweather-rz0n.onrender.com

A Node.js-based web application that displays real-time weather information using a third-party weather API. It also includes features like user authentication and database integration.


πŸ“¦ Features

  • Real-time weather updates by location
  • User registration & authentication (JWT-based)
  • Session management
  • MongoDB integration
  • Responsive UI for various screen sizes

πŸš€ Tech Stack

  • Backend: Node.js, Express
  • Database: MongoDB
  • Authentication: JWT, Express Session
  • API: OpenWeatherMap or any weather API

πŸ”§ Configuration

Create a .env file in the root directory and configure the following environment variables:

API_KEY=your_weather_api_key_here
MONGO_URI=mongodb://localhost:27017/weatherDB
JWT_SECRET=your_secure_jwt_secret_key
EMAIL_USER=your_email@example.com
EMAIL_PASS=your_email_password
SESSION_SECRET=your_secure_session_secret

πŸ“₯ Installation

  1. Clone the repository

    git clone https://github.com/SabarishCodeWizard/whetherApp-nodeJS.git
  2. Navigate to the project directory

    cd whetherApp-nodeJS
  3. Install dependencies

    npm install
  4. Run the application

    npm start
  5. View in browser
    Open http://localhost:3000 in your web browser.


πŸ“‚ Folder Structure

weather-app/
β”‚
β”œβ”€β”€ models/             # Mongoose models
β”œβ”€β”€ routes/             # Routes details  
β”œβ”€β”€ public/             # Static assets (CSS, JS, images)
β”œβ”€β”€ .env                # Environment variables
β”œβ”€β”€ server.js              # Main application entry point
└── package.json        # Project metadata and dependencies

πŸ› οΈ Scripts

  • npm start: Starts the server using Node
  • npm run dev: Starts the server with nodemon (if configured)

🀝 Contributing

Contributions are welcome!
To contribute:

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-name)
  3. Commit your changes (git commit -m 'Add feature')
  4. Push to the branch (git push origin feature-name)
  5. Open a Pull Request

πŸ“¬ Contact

Developed by Sabarish
GitHub: @SabarishCodeWizard

About

A Node.js-based web application that displays real-time weather information using a third-party weather API. It also includes features like user authentication and database integration.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages