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
- Host: GitHub
- URL: https://github.com/cedmandocdoc/coingecko-coding-challenge
- Owner: cedmandocdoc
- License: mit
- Created: 2024-06-20T04:21:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-20T08:15:14.000Z (almost 2 years ago)
- Last Synced: 2024-12-31T12:53:17.664Z (over 1 year ago)
- Language: TypeScript
- Size: 198 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```