https://github.com/ryan-haskell/pokeapi-cache-server
dont ddos the pokeapi
https://github.com/ryan-haskell/pokeapi-cache-server
nodejs pokeapi
Last synced: 3 months ago
JSON representation
dont ddos the pokeapi
- Host: GitHub
- URL: https://github.com/ryan-haskell/pokeapi-cache-server
- Owner: ryan-haskell
- Created: 2022-06-03T03:12:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-26T03:16:46.000Z (almost 3 years ago)
- Last Synced: 2025-03-19T17:49:00.177Z (3 months ago)
- Topics: nodejs, pokeapi
- Language: JavaScript
- Homepage:
- Size: 40 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @ryannhg/pokeapi-cache-server
> Don't DDOS the PokeAPI!## Try it out
__Note:__ This server requires [Node.js v16+](https://nodejs.org)
```bash
npm start
```🚀 The API will be running at [http://localhost:5000/api/v2](http://localhost:5000/api/v2)
## Options
You can use these environment variables to customize how the API server runs.
### `PORT`
Which port should the server run on? (Default: `5000`)
__Example usage:__
```
PORT=7000 npm start
```### `DELAY`
Helpful for simulating a slower API, in milliseconds (Default: `0`)
__Example usage:__
```
DELAY=1000 npm start
```