Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
19 changes: 19 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# FRONTEND
VITE_API_URL=

# DATABASE
DATABASE_URL=

# GROQ
GROQ_API_KEY=

# WHATSAPP
WHATSAPP_TOKEN=
WHATSAPP_PHONE_ID=

# REDIS
REDIS_URL=

# SUPABASE
SUPABASE_URL=
SUPABASE_KEY=
98 changes: 98 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
name: BazarSync-AI CI Pipeline

on:
push:
branches:
- develop
- main

pull_request:
branches:
- develop
- main

jobs:

frontend:
name: Frontend Build Check
runs-on: ubuntu-latest

defaults:
run:
working-directory: frontend

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Dependencies
run: npm install

- name: Build Frontend
run: npm run build

backend:
name: Backend Lint & Import Check
runs-on: ubuntu-latest

defaults:
run:
working-directory: backend

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install Backend Dependencies
run: |
python -m pip install --upgrade pip

if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi

pip install flake8

- name: Run Flake8 Lint
run: |
flake8 app --max-line-length=100

- name: Backend Import Test
run: |
python -c "from app.main import app"

scraper:
name: Scraper Installation Check
runs-on: ubuntu-latest

defaults:
run:
working-directory: scraper

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install Scraper Dependencies
run: |
python -m pip install --upgrade pip

pip install playwright pandas beautifulsoup4 sqlalchemy psycopg2-binary sentence-transformers

- name: Install Playwright Browsers
run: playwright install --with-deps
149 changes: 10 additions & 139 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,143 +1,14 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
# env
.env
.env.*
!.env.example

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist
.output

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp directory
.temp

# Sveltekit cache directory
.svelte-kit/

# vitepress build output
**/.vitepress/dist
venv/
__pycache__/

# vitepress cache directory
**/.vitepress/cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# Firebase cache directory
.firebase/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# pnpm
.pnpm-store
# frontend
node_modules/
dist/

# yarn v3
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
# mac
.DS_Store

# Vite files
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.vite/
# logs
*.log
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# BazarSync-AI
A Bangla-first AI commerce OS for marketplace sellers. Monitors competitor prices, promotions, and stockouts in real-time, delivering margin-safe optimization via a web dashboard and urgent WhatsApp alerts.
A Bangla-first AI commerce OS for marketplace sellers. Monitors competitor prices, promotions, and stockouts in real-time, delivering margin-safe optimization via a web dashboard and urgent WhatsApp alerts.
Binary file added ai-engine/.DS_Store
Binary file not shown.
Empty file added ai-engine/main.py
Empty file.
Binary file added backend/.DS_Store
Binary file not shown.
Binary file added backend/app/.DS_Store
Binary file not shown.
Binary file added backend/app/api/.DS_Store
Binary file not shown.
Empty file added backend/app/main.py
Empty file.
46 changes: 46 additions & 0 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
alembic==1.18.4
amqp==5.3.1
annotated-doc==0.0.4
annotated-types==0.7.0
anyio==4.13.0
bcrypt==5.0.0
billiard==4.2.4
celery==5.6.3
certifi==2026.4.22
click==8.4.0
click-didyoumean==0.3.1
click-plugins==1.1.1.2
click-repl==0.3.0
dnspython==2.8.0
ecdsa==0.19.2
email-validator==2.3.0
fastapi==0.136.1
h11==0.16.0
httpcore==1.0.9
httpx==0.28.1
idna==3.15
kombu==5.6.2
Mako==1.3.12
MarkupSafe==3.0.3
packaging==26.2
passlib==1.7.4
prompt_toolkit==3.0.52
psycopg2-binary==2.9.12
pyasn1==0.6.3
pydantic==2.13.4
pydantic_core==2.46.4
python-dateutil==2.9.0.post0
python-dotenv==1.2.2
python-jose==3.5.0
redis==7.4.0
rsa==4.9.1
six==1.17.0
SQLAlchemy==2.0.49
starlette==1.0.0
typing-inspection==0.4.2
typing_extensions==4.15.0
tzdata==2026.2
tzlocal==5.3.1
uvicorn==0.47.0
vine==5.1.0
wcwidth==0.7.0
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3.9'

services:
redis:
image: redis
ports:
- "6379:6379"
24 changes: 24 additions & 0 deletions frontend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
Loading
Loading