An image uploader and gallery that uses Algolia and InstantSearch to search through uploaded images that have been auto-classified by Google Cloud Platform's Vision API.
To work with your own version of this repo, you'll need to set up a few things in advance:
- Algolia Account (get a free one here)
- Google Cloud Platform Account (get it here)
Clone this repo and open the folder structure. Open the folder in your terminal and run:
npm install
Once all the libraries that the app depends on are installed you need to create an .env
file in the folder to store all the different settings. You can copy the example below and replace the credentials with your own.
ALGOLIA_INDEX_NAME=imagebox-develop
ALGOLIA_APP_ID=your_algolia_app_id
ALGOLIA_ADMIN_KEY=your_algolia_admin_api_key
GOOGLE_APPLICATION_CREDENTIALS="google-service-account.json"
Note: You'll need to follow the guide for setting up the Google Service Account credentials to get your google-service-account.json set up. Get that from here (be sure to use the examples for NodeJS).
Run the app in development mode by typing npm run dev
in your terminal.