Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/maykbrito/openweather-example

test to using the API proxy server template >> https://github.com/maykbrito/ts-proxy-server
https://github.com/maykbrito/openweather-example

Last synced: 17 days ago
JSON representation

test to using the API proxy server template >> https://github.com/maykbrito/ts-proxy-server

Awesome Lists containing this project

README

        


Techs   |   
About   |   
How to use   |   
License   |   
Contact


License


Example image

## 🚀 Techs

Using the following technologies

- TypeScript
- Node.JS
- Express
- Cors
- dotenv
- Axios
- express-rate-limit
- apicache

## 💻 About

API proxy server to hide API keys adding features like rate limiting & caching

## 🤔 How to use

1. Create and get your API KEY at: https://home.openweathermap.org/api_keys

2. Get the API BASE URL at: https://openweathermap.org/current

3. Configure your .env file like this

```.env
API_BASE_URL="https://api.openweathermap.org/data/2.5/weather"
API_KEY_NAME="appid"
API_KEY_VALUE="YOUR_API_KEY_HERE"
```

4. Install dependencies: Open your terminal, navigate to this directory and run `yarn` or `npm install`

5. Check the app: run `yarn dev` or `npm start dev`

6. Open `http://localhost:5454/`

## 📝 License

MIT.

## 👨🏽‍🦲 Contact

🔥 Mayk Brito [Wanna be friend?](https://maykbrito.dev)