
BARISTA is a self-contained Javascript web application that handles a persistent SQLite database full of image hash data that is accessible through an API and through a browser GUI.
- Download the repository somewhere.
cdinto the frontend directory and runnpm install. Wait for prerequisites to download, and then donpm build.cdinto the backend directory and runnpm install. Wait for prerequisites to download.- Do
npm startwhile in the backend directory to launch BARISTA. How to populate the database (and how to set it up to work with your own web scraper) is covered under the API subheading.
Access the service in your browser by visiting localhost:5000. You can use port forwarding to also make this service accessible over the internet.
For the purposes of demonstration and testing, I've included some sample data which is contained in the "companion" folder. This data needs to be fed to BARISTA's API to be useable.
metmuseum_images.txtcontains 7416 image links (one per line) from the Met Museum.populator.pyis a very simple Python script to feed image links to the database's API.- The "test" folder contains some images from the Met Museum's website, as well as some altered variants.
First, make sure Barista's backend is running. Then just run the Python script to begin automatically feeding the data into Barista.