https://github.com/autumnchris/local-weather-backend-api
A back-end Express.js server to call the relevant external APIs needed to run my front-end Local Weather App.
https://github.com/autumnchris/local-weather-backend-api
api back-end backend css3 ejs ejs-express express expressjs javascript node nodejs openweathermap openweathermap-api server weather-app weather-forecast
Last synced: 3 months ago
JSON representation
A back-end Express.js server to call the relevant external APIs needed to run my front-end Local Weather App.
- Host: GitHub
- URL: https://github.com/autumnchris/local-weather-backend-api
- Owner: autumnchris
- Created: 2025-02-01T17:41:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-21T19:53:32.000Z (over 1 year ago)
- Last Synced: 2025-03-21T20:32:50.714Z (over 1 year ago)
- Topics: api, back-end, backend, css3, ejs, ejs-express, express, expressjs, javascript, node, nodejs, openweathermap, openweathermap-api, server, weather-app, weather-forecast
- Language: EJS
- Homepage: https://autumnchris-local-weather-backend-api.onrender.com/api
- Size: 119 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Local Weather Backend API
An Express.js API that calls the relevant external APIs needed to run a front-end local weather app.
* [Local Weather App (React.js version)](https://github.com/autumnchris/local-weather-app-reactjs)
* [Local Weather App (vanilla JS version)](https://github.com/autumnchris/local-weather-app-vanilla-js)
---
## Built With
* [Express.js](https://expressjs.com)
* [Node.js](https://nodejs.org/en)
* JavaScript
* [EJS](https://ejs.co)
* HTML5
* CSS3
* Vanilla JS
* [OpenWeatherMap API](https://openweathermap.org)
* [GeoDB Cities API](https://rapidapi.com/wirefreethought/api/geodb-cities)
* [Axios](https://axios-http.com)
* [dotenv](https://github.com/motdotla/dotenv)
* [Normalize.css](https://necolas.github.io/normalize.css)
* [Google Fonts](https://fonts.google.com)
* [Font Awesome](https://fontawesome.com)
* [nodemon](https://nodemon.io)
## Demo
View project demo at [https://autumnchris-local-weather-backend-api.onrender.com/api](https://autumnchris-local-weather-backend-api.onrender.com/api).
## Instructions
After cloning and navigating to the repository in your command line, install the NPM packages.
```
npm install
```
Create a `.env` file in the root of the repository and add the following variables:
```
OPEN_WEATHER_API_KEY=
GEO_DB_API_KEY=
```
Run the following script in your command line if starting the repository in development mode.
```
npm run dev
```
Run the following script in your command line if starting the repository in production mode:
```
npm start
```
Go to `http://localhost:3000` in your browser.