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

https://github.com/cedmandocdoc/coingecko-coding-challenge

Coingecko Coding Challenge
https://github.com/cedmandocdoc/coingecko-coding-challenge

Last synced: 3 months ago
JSON representation

Coingecko Coding Challenge

Awesome Lists containing this project

README

          

# Coingecko Coding Challenge

## Quickstart

```shell
npm install && npm run build && npm start
```

Server is running at http://localhost:3001 by default.

## Running in Development

```shell
npm run dev
```

## Overriding environment variables

Create `.env` file on root folder and copy the values from `.env.example`, it should be runnable by default, but update the values accordingly

### Default values

```
PORT=3001 # backend port
VITE_API_URL=https://api.coingecko.com/api/v3
VITE_API_KEY=CG-8yR4X6oVpUdyqWbWrcztCsxM
VITE_API_HEADER_KEY=x-cg-demo-api-key
VITE_API_FETCH_INTERVAL=5000 # interval on fetching from coingecko in milliseconds
VITE_API_MAX_RETRY_ERROR=5 # max retry if api throws an error
```