Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

rbhachu/smartbrain-backend-docker

Open more actions menu

Repository files navigation

All SmartBrain Repos


Updated Version of this Repo: https://github.com/rbhachu/smartbrain-master-docker

SmartBrain Docker v1
(`Dockererized` Server)

Final project for ZTM course - using Docker
  1. Clone this repo
  2. run npm install
  3. Make sure you have docker installed and running on your computer
  4. Run docker-compose up ( you may have to run docker-compose up --build for the first setup phase)
  5. You must add your own API key in the controllers/image.js file to connect to Clarifai API.
  6. You will also need to update Line 22 in server.js to your client app port (i.e. 3001)

Important: if you are getting conflict erros, you should run docker stop <container name> that is already running in the background. Important: if you are getting other erros, you should run docker-compose down to bring everything down, and start over.

To access backend's bash: Run docker-compose exec smart-brain-api bash

To access postgres: (adjust PORT number if needed) Run psql postgres://<username>:<password>@localhost:5432/smart-brain

To access redis: Run docker-compose exec redis redis-cli

You can grab Clarifai API key here

** Make sure you use postgreSQL instead of mySQL for this code base.

About

'dockerized' version of smartbrain-backend

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.