An open API service indexing awesome lists of open source software.

https://github.com/kamo333/ms-ai-hackathon

HTML5, CSS3, JavaScript, Node.js, Express, OpenAI integration, SQL database management โ€“ developed for the Microsoft AI Hackathon 2025. A full-stack application that helps social workers manage client information with AI-powered assistance, providing context-aware suggestions based on integrated client data.
https://github.com/kamo333/ms-ai-hackathon

css3 expressjs html5 javascript nodejs openai sql

Last synced: 4 days ago
JSON representation

HTML5, CSS3, JavaScript, Node.js, Express, OpenAI integration, SQL database management โ€“ developed for the Microsoft AI Hackathon 2025. A full-stack application that helps social workers manage client information with AI-powered assistance, providing context-aware suggestions based on integrated client data.

Awesome Lists containing this project

README

          

# CareMind ๐Ÿค๐Ÿ’ฌ

![Node.js](https://img.shields.io/badge/Node.js-339933?style=for-the-badge&logo=nodedotjs&logoColor=white)
![Express.js](https://img.shields.io/badge/Express.js-000000?style=for-the-badge&logo=express&logoColor=white)
![PostgreSQL](https://img.shields.io/badge/PostgreSQL-4169E1?style=for-the-badge&logo=postgresql&logoColor=white)
![HTML5](https://img.shields.io/badge/HTML5-E34F26?style=for-the-badge&logo=html5&logoColor=white)
![JavaScript](https://img.shields.io/badge/JavaScript-F7DF1E?style=for-the-badge&logo=javascript&logoColor=black)
![CSS3](https://img.shields.io/badge/CSS3-1572B6?style=for-the-badge&logo=css3&logoColor=white)
![Jest](https://img.shields.io/badge/Jest-C21325?style=for-the-badge&logo=jest&logoColor=white)
![GitHub Actions](https://img.shields.io/badge/GitHub_Actions-2088FF?style=for-the-badge&logo=github-actions&logoColor=white)
![Groq](https://img.shields.io/badge/Groq-F55036?style=for-the-badge&logo=groq&logoColor=white)

[![Node.js CI](https://github.com/KAMO333/MS-AI-Hackathon/actions/workflows/tests.yml/badge.svg)](https://github.com/KAMO333/MS-AI-Hackathon/actions/workflows/tests.yml)

A professional full-stack application designed for social workers to manage client interactions with AI-powered clinical guidance. This project showcases a modern MVC (Model-View-Controller) architecture, cloud-native database integration, and automated testing.

---

## ๐Ÿ“ Project Structure

```text
backend/
โ”œโ”€โ”€ src/
โ”‚ โ”œโ”€โ”€ controllers/ # Route logic & orchestration
โ”‚ โ”œโ”€โ”€ db/ # Database connection & pooling
โ”‚ โ”œโ”€โ”€ middleware/ # Request validation guards
โ”‚ โ”œโ”€โ”€ routes/ # API endpoint definitions
โ”‚ โ”œโ”€โ”€ services/ # External AI API integration
โ”‚ โ”œโ”€โ”€ tests/ # Jest unit & integration tests
โ”‚ โ””โ”€โ”€ server.js # Entry point
frontend/ # Client-side assets (HTML/CSS/JS)
.github/workflows/ # CI/CD (GitHub Actions)
```

---

## โœจ Key Features

- **MVC Architecture:** Decoupled concerns for high maintainability and scalability.
- **AI Consultation Engine:** Context-aware guidance powered by Groq (Llama-3-70b).
- **Cloud-Native Storage:** Robust data persistence using Neon PostgreSQL.
- **Automated Quality Assurance:** 100% mocked testing environment using Jest.
- **CI/CD Pipeline:** Automated test execution on every push via GitHub Actions.
- **Modern UI:** Professional "Digital Case File" aesthetic with real-time state feedback.

---

## ๐Ÿ› ๏ธ Technologies Used

**Backend:**

- Node.js (ES Modules)
- Express.js
- Groq SDK (Llama-3-70b-versatile)
- PostgreSQL (pg) with Connection Pooling

**Frontend:**

- HTML5
- Vanilla JS (Fetch API & DOM Manipulation)
- CSS3 (Flexbox/Grid design system)

**DevOps & Testing:**

- Jest (Native ESM Testing)
- GitHub Actions
- Supertest (API Testing)

---

## ๐Ÿš€ Installation Guide

### Prerequisites

- Node.js (v20+)
- Neon.tech (or local PostgreSQL) account
- Groq API Key

### Setup Instructions

#### 1. Clone & Install

```bash
git clone https://git@github.com:KAMO333/MS-AI-Hackathon.git
cd CareMind/backend
npm install
```

#### 2. Environment Configuration

Create a `.env` file in the `backend` folder:

```env
PORT=3000
DATABASE_URL=postgres://user:password@hostname/dbname?sslmode=require
GROQ_API_KEY=your_groq_key_here
```

#### 3. Database Migration

Run this in your PostgreSQL console:

```sql
CREATE TABLE Clients (
id SERIAL PRIMARY KEY,
name VARCHAR(255) NOT NULL,
surname VARCHAR(255),
age INTEGER,
location VARCHAR(255),
issue TEXT,
response TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
```

---

## ๐Ÿงช Running Tests

This project uses Native ESM with Jest. Run the automated suite with:

```bash
npm test
```

---

## ๐Ÿƒ Running the Application

#### 1. Start the Development Server

```bash
npm run dev
```

#### 2. Access the UI

Open `http://localhost:3000` in your browser.

---