https://rafnixg.github.io/bcv-api/
This API is used to get the exchange rate of the BCV (Central Bank of Venezuela). This API is a simple REST API that returns the exchange rate of the BCV in JSON format.
- Clone the repository and create a
.env
file in the root of the project, use.env.example
as a template Remember to replace the values of the variables with your own values.
git clone https://github.com/rafnixg/bcv-api.git
cd bcv-api
cp .env.example .env
- Create a virtual environment
python -m venv venv
- Activate the virtual environment
# Windows
venv\Scripts\activate
# Linux
source venv/bin/activate
- Install the dependencies
pip install -r requirements.txt
- Run the API
uvicorn bcv_api.main:app --reload
- Open your browser and go to http://localhost:8000
- Clone the repository and create a
.env
file in the root of the project, use.env.example
as a template Remember to replace the values of the variables with your own values.
git clone
cd bcv-api
cp .env.example .env
- Build the image with the Dockerfile, select the Dockerfile.newrelic file if you want to monitor the application with NewRelic
# Without newrelic monitoring
docker build -t bcv-api .
# With newrelic monitoring
docker build -t bcv-api -f Dockerfile.newrelic .
- Run the container
docker run -d --name bcv-api -p 8000:8000 --env-file .env bcv-api:latest
- Open your browser and go to http://localhost:8000
- Rafnix Guzmán - rafnixg
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.