GithubHelp home page GithubHelp logo

rafnixg / bcv-api Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 0.0 608 KB

BCV Exchange rate: This API is used to get the exchange rate of the BCV (Central Bank of Venezuela)

Home Page: https://rafnixg.github.io/bcv-api/

License: GNU General Public License v3.0

Python 98.63% Dockerfile 1.37%
bcv exchange-api exchange-rate exchange-rates python venezuela

bcv-api's Introduction

BCV Exchange Rate API

Documentation

https://rafnixg.github.io/bcv-api/

Description

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.

Installation

  1. 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
  1. Create a virtual environment
python -m venv venv
  1. Activate the virtual environment
# Windows
venv\Scripts\activate
# Linux
source venv/bin/activate
  1. Install the dependencies
pip install -r requirements.txt
  1. Run the API
uvicorn bcv_api.main:app --reload
  1. Open your browser and go to http://localhost:8000

Using Docker

  1. 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
  1. 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 .
  1. Run the container
docker run -d --name bcv-api -p 8000:8000 --env-file .env bcv-api:latest
  1. Open your browser and go to http://localhost:8000

Built With

Author

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

bcv-api's People

Contributors

rafnixg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.