Skip to content

Pratham-Mishra04/interact-ml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interact ML DB Local Setup

  1. Download docker and table plus
  2. Pull interact-ml main branch to the latest commit
  3. create a .env file in the repo directory and paste this
DB_HOST = "localhost"
DB_PORT = 5432
DB_NAME = "postgres"
DB_USER = "postgres"
DB_PASS = "pgpass"
SSL_MODE = 'disable'

PORT = 3030
BACKEND_URL = "http://localhost:8000"

ML_URL = "http://localhost:3030"

LOGGER_URL = "http://localhost:8080"
LOGGER_SECRET = "-"
LOGGER_TOKEN = "-"

POPULATE = "FALSE"
  1. Steps to run DB on docker and python locally (recommended)
  • Change POPULATE = "TRUE" (in .env file) if u want to populate dummies
  • Run the following commands
    1. pip install -r requirements.txt
    2. chmod +x ./build-container.sh
    3. ./build-container.sh -build
    4. python3 api.py
  1. Steps to run both api and DB on docker
  • First Uncomment ml-api section in dev.docker-compose.yml file
  • Change DB_HOST = "postgres-ml-db" (in .env file)
  • Run the following commands
    1. chmod +x ./build-container.sh
    2. ./build-container.sh -build (run ./build-container.sh -build -populate -> if u want to populate dummies)

Once setup just run your docker compose (either only db or both db and api) with the command: ./build-container.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •