Skip to content

Dvaltor-Fashion-App/.github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

🌟 Dvaltor Smart Fashion AI – Backend API 🧠👕

Build Status Docker Pulls GitHub repo size License Last Commit

Welcome to the backend of 🧥 Dvaltor's Smart Fashion AI, a cutting-edge fashion tech platform built for intelligent clothing suggestions, personalized style, and tone-based outfit matching! 💃🕺


🚀 Live Demo

Coming soon on:
🌐 https://dvaltor.com
🧪 API playground: https://api.dvaltor.com/predict


🧰 Tech Stack

Frontend:
🎨 Next.js + Tailwind CSS + TypeScript

Backend:
⚙️ FastAPI
📦 Dockerized with GitHub Actions auto-build
🌐 CORS-configured to work with multiple environments

Database:
🗄️ PostgreSQL

AI/ML Model:
🧠 TensorFlow model for skin tone or image classification
📸 Accepts image uploads and returns the best match with confidence

Deployment:
☁️ Docker Hub
☁️ Google Cloud / AWS (Planned)


🔐 CORS Config (Cross-Origin Requests)

This FastAPI project is set up with:

allow_origins = ["*", "https://dvaltor.com", "https://app.dvaltor.com"]

So it works both during development and production deployments. Also supports credentials and all headers/methods! ✅


📦 API Usage

Upload an image to /predict endpoint:

Request

POST /predict
Content-Type: multipart/form-data

Form Field

  • file: 🖼️ Upload image (.jpg/.png)

Sample Response

{
  "class": "Golden Brown",
  "confidence": 0.9674
}

🐳 Docker Build

# Build the Docker image
docker build -t dvaltor/smart-fashion-api ./API

# Run the container
docker run -p 8000:8000 dvaltor/smart-fashion-api

The Docker image is automatically rebuilt using GitHub Actions whenever code is pushed to main! 🔁


📁 Project Structure

Dvaltor_Backend/
│
├── API/
│   ├── main.py              # FastAPI application
│   ├── Dockerfile           # Docker config
│   ├── model/
│   │   └── skin_tone_model.pkl
│   └── ...
│
├── .github/workflows/
│   └── docker-autobuild.yml # CI/CD pipeline
│
└── README.md

🤝 Contributing

We welcome all developers, AI enthusiasts, and fashion tech nerds to collaborate!

  • Fork it 🍴
  • Create your branch git checkout -b feat/amazing-feature
  • Commit your changes 🎯
  • Push to the branch git push origin feat/amazing-feature
  • Create a PR 🚀

🧑‍💻 Maintainers

👤 @atul-sharma – Full Stack Dev & AI Engineer 🔗 @Dvaltor-Fashion-App


📃 License

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


💬 Connect with Dvaltor

Follow updates on:


Dvaltor: Where AI meets Style 👗👕👠

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published