- Install dependencies:
pip install -r requirements.txt
- Set up environment variables: Create a
.env
file with necessary configurations. - Run the application:
flask run
- Access the API at
http://127.0.0.1:5000/allBerryStats
- Build the Docker image
docker build -t poke-berries-api .
- Run the Docker container
docker run -p 5000:5000 --env-file .env poke-berries-api
Run tests using pytest:
pytest tests