Skip to content

Backend API server for ThreadFlow - A garment factory management platform handling authentication, products, orders,contacts, and payments.

Notifications You must be signed in to change notification settings

Samioul51/ThreadFlow-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThreadFlow Server - Backend API 🚀

Backend API server for ThreadFlow - A garment factory management platform handling authentication, products, orders,contacts, and payments.

✨ Features

  • 🔐 Firebase Admin Authentication with JWT
  • 🛡️ Role-Based Access Control (Admin, Manager, Buyer)
  • 📦 Product Management CRUD
  • 🛒 Complete Order Processing
  • 💳 Stripe Payment Integration
  • 🚦 Rate Limiting & Security
  • 📊 Multi-stage Order Tracking

🚀 Tech Stack

  • Runtime: Node.js 18+
  • Framework: Express.js 5.2.1
  • Database: MongoDB 7.0.0
  • Auth: Firebase Admin 13.6.0
  • Payment: Stripe 20.0.0
  • Security: CORS, Rate Limit

⚙️ Installation

# Clone repository
git clone https://github.com/Samioul51/threadflow-server.git
cd threadflow-server

# Install dependencies
npm install

# Create .env file
touch .env

# Start server
nodemon index.js

🔐 Environment Variables

Create .env file:

# MongoDB Credentials
user_name=your_mongodb_username
password=your_mongodb_password

# Stripe Secret Key
stripe_secret_key=sk_test_your_stripe_key

🔒 Security

  • ✅ Firebase JWT verification
  • ✅ Role-based middleware
  • ✅ CORS with whitelist
  • ✅ Rate limiting for Contact Form (1/10min)
  • ✅ Input validation

👨‍💻 Developer

A. K. M Samioul Islam

🔗 Links

About

Backend API server for ThreadFlow - A garment factory management platform handling authentication, products, orders,contacts, and payments.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors