This Flask application fetches the last 24 hours average prices for Bitcoin and Ethereum in USD and EUR from the CoinGecko API.
- Git
- Docker and Docker Compose (for running with Docker)
- Python and pip (for running without Docker)
- Clone the repository:
git clone https://github.com/yourusername/cryptocurrency-price-fetcher.git - Navigate to the project folder:
cd cryptocurrency-price-fetcher - Make the scripts executable:
chmod +x run.sh stop.sh - Run the
run.shscript to build and start the Docker containers:./local-dev/run.sh
Once the Docker containers are running, navigate to http://localhost:8080 in your web browser. You will see a JSON response with the latest prices for Bitcoin and Ethereum in USD and EUR.
To stop the application and remove the Docker containers, run the stop.sh script: ./local-dev/stop.sh
- Clone the repository:
git clone https://github.com/yourusername/cryptocurrency-price-fetcher.git - Navigate to the project folder:
cd cryptocurrency-price-fetcher - Build the Docker image:
docker build -t cryptocurrency-price-fetcher -f docker/app.Dockerfile . - Run the Docker container:
docker run -p 8080:8080 cryptocurrency-price-fetcher
Once the Docker container is running, navigate to http://localhost:8080 in your web browser. You will see a JSON response with the latest prices for Bitcoin and Ethereum in USD and EUR.
- Clone the repository:
git clone https://github.com/yourusername/cryptocurrency-price-fetcher.git - Navigate to the project folder:
cd cryptocurrency-price-fetcher - Install the dependencies:
pip3 install -r app/requirements.txt - Run the application:
python3 app/app.py
- Helm should be installed on your machine.
- Access to a Kubernetes cluster.
- Clone the repository:
git clone https://github.com/yourusername/cryptocurrency-price-fetcher.git - Navigate to the project folder:
cd cryptocurrency-price-fetcher - Install the Helm chart:
helm upgrade -i cryptocurrency-price-fetcher chart/. -n <namespace>
Replace cryptocurrency-price-fetcher with a name of your choice and adjust other parameters as needed.
Modify the values.yaml file in the chart directory to customize the deployment according to your requirements.