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
Using Docker
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
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