Smart-Brain-API-2.0(and it's front-end Smart-Brain-2.0) is a dockerized version of Smart-Brain-API that now includes Redis, token authorization, and PLpgSQL data. This version is designed to get a new-developer up and running as quickly as possible.
-
Clone this repo
-
run
npm install
-
Make sure you have docker installed and running on your computer
-
Run
docker-compose up
( you may have to rundocker-compose up --build
for the first setup phase) -
You must add your own API key. Create a .env file in the root of the project and place the API key as such: REACT_APP_CLAIRFAI_KEY=yourApiKeyGoesHere
-
You will also need to update Line 22 in server.js to your client app port (i.e. 3001)
You can grab Clarifai API key here
- Set up the front-end using this repo: https://github.com/Kevinlc33/Smart-Brain-2.0