Backend API server for ThreadFlow - A garment factory management platform handling authentication, products, orders,contacts, and payments.
- π 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
- 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
# 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.jsCreate .env file:
# MongoDB Credentials
user_name=your_mongodb_username
password=your_mongodb_password
# Stripe Secret Key
stripe_secret_key=sk_test_your_stripe_key- β Firebase JWT verification
- β Role-based middleware
- β CORS with whitelist
- β Rate limiting for Contact Form (1/10min)
- β Input validation
A. K. M Samioul Islam
- GitHub: @Samioul51
- LinkedIn: A. K. M Samioul Islam
- Portfolio: akm-samioul-islam.vercel.app
- Client Repository: ThreadFlow Client