Skip to content

yellowwlabs/RetailCortex

Repository files navigation

RetailCortex

RetailCortex is a modern, high-performance retail management platform built with a robust monorepo architecture. It leverages a full-stack TypeScript and Python ecosystem, designed for scalability and ease of deployment.

🏗️ Architecture

The project is organized as a monorepo using Turborepo, managing four primary components:

  • frontend/: A modern web interface built with Next.js.
  • app/: A cross-platform mobile application built with Expo (React Native).
  • backend/: A high-performance API built with FastAPI.
  • infra/: Infrastructure as Code (IaC) using Terraform for automated provisioning on Google Cloud Platform.

🛠️ Tech Stack

Frontend & Mobile

  • Web Framework: Next.js (App Router)
  • Mobile Framework: Expo (React Native)
  • Styling: Tailwind CSS (Web), Nativewind/React Native StyleSheet
  • Language: TypeScript
  • Package Manager: pnpm

Backend

  • Framework: FastAPI
  • Server: Uvicorn
  • Language: Python 3.9+
  • Package Manager: uv

Infrastructure & DevOps

  • Cloud: Google Cloud Platform (GCP)
  • IaC: Terraform
  • Monorepo Tooling: Turborepo

🚀 Getting Started

Prerequisites

Ensure you have the following installed:

Installation

  1. Clone the repository:

    git clone https://github.com/yellowwlabs/RetailCortex.git
    cd RetailCortex
  2. Install dependencies:

    # Install all frontend, mobile, and root dependencies
    pnpm install
    
    # Install backend dependencies
    cd backend
    uv sync
    cd ..

Running Locally

You can run the frontend, mobile app (web), and backend simultaneously using Turbo:

pnpm dev

☁️ Infrastructure

The infra/ directory contains Terraform configurations to deploy the application to GCP.

  1. Setup Credentials: Place your Google Cloud service account key at keys/googleServiceAccount.json.

  2. Deploy:

    cd infra
    terraform init
    terraform plan
    terraform apply

📂 Project Structure

RetailCortex/
├── app/              # Expo mobile application
├── backend/          # FastAPI application
├── frontend/         # Next.js web application
├── infra/            # Terraform configurations
├── keys/             # (Ignored) GCP service account keys
├── package.json      # Monorepo configuration
└── turbo.json        # Turborepo pipeline configuration

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

About

An AI-powered mall operations brain that helps shoppers find products faster while helping mall operators predict congestion, optimize promotions, and reduce facility downtime in real time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors