IntelligentCHILD (Community Health Information Local Database) is an semantic search engine indexing curated resources and content in an intuitive format for mothers, children and families.
- Query a curated datbase of resources/content with natural language prompts
- Create user accounts to revisit past queries and saved resources/content
- Includes CRUD portal for admins to manage content
- Connects to the Ollie API to create responses
This guide covers the necessary dependencies and steps to run the iChild application locally.
The application runs using two Docker containers:
- Frontend: React application
- Backend: Flask application
Ensure you have the following installed:
- Docker
- Git
git clone https://github.com/oliviahealth/ichild.git
cd ichildIn the root of the repository, create a file named .env:
touch .envAdd the following contents:
VITE_API_URL='http://localhost:5000'
VITE_GOOGLE_API_KEY='AIzaSyBQmndv6caGHFZzm2SaupLvT4Faxj2FK2s'
OLLIE_API_URL='http://intelligentchild.org/ollie' # or ollie api running on docker
POSTGRESQL_CONNECTION_STRING='postgresql+psycopg2://ichild:ichild@db:5432/ichild'
ADMIN_POSTGRESQL_CONNECTION_STRING='postgresql+psycopg2://ichild:ichild@db:5432/ichild'
POSTGRES_DSN='postgresql://ichild:ichild@db:5432/ichild'
GOOGLE_API_KEY='' # see the sharepoint documentation
OPENAI_API_KEY='' # see the sharepoint documentation
SECRET_KEY="8E72CB3EA1DE366872FB5E238A381"
From the root directory:
docker compose up
Docker will:
- Pull required images
- Build frontend and backend
- Start PostgreSQL
- Install dependencies
You should see logs indicating:
- Frontend build completion
- Backend startup
- PostgreSQL initialization