Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/doctorpok42/weatherapp

Get the weather of a city!
https://github.com/doctorpok42/weatherapp

nextjs sass ts weather weather-api

Last synced: 22 days ago
JSON representation

Get the weather of a city!

Awesome Lists containing this project

README

        



# Weather App

### Get the weather of a city!

## Installation

1. Clone the repository

```bash
git clone [email protected]:DoctorPok42/WeatherApp.git
```

2. Install dependencies

```bash
npm install
```

3. Add .env file

```bash
touch .env
```

4. Add the following variables to the .env file

Get your api key [https://www.weatherapi.com](https://www.weatherapi.com/)

```bash
WEATHER_API_KEY= # Your weather api key
```

5. Run the project

```bash
npm run dev
```

## Usage

1. Go to http://localhost:3000

2. Enter a city name in the search bar

3. The weather of the city is displayed!

## Tech

- [Next.js](https://nextjs.org/)
- [TS](https://www.typescriptlang.org/)
- [SASS](https://sass-lang.com/)

## Folder structure

- **components** - Contains all the components used in the project
- **pages** - Contains all the pages used in the project
- **public** - Contains all the static files used in the project
- **styles** - Contains all the styles used in the project
- **api** - Contains all the routes api used in the project

## License

[MIT](https://github.com/DoctorPok42/WeatherApp/blob/main/LICENSE)