Weather App is a web application that provides current weather information and historical temperature data. The backend is built with Node.js and MySQL, while the frontend is developed using React and styled with Tailwind CSS.
To get started with the Weather App, follow these steps:
Before you begin, ensure you have the following dependencies installed:
- Node.js
- MySQL Database
-
Clone the repository:
git clone https://github.com/abdullah-25/Weather-App.git cd Weather-App -
Install backend dependencies:
cd server npm i knex migrate:latest knex migrate:latest knex seed:run npm start -
Install front-end dependencies:
cd client npm i npm start
Configure the project as follows:
- Set up environment variables for the database connection in the .env file.
The backend provides the following API endpoints:
/current: POST current weather data. //historical: POST historical temperature data.