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

31 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**
- GitHub: [@Samioul51](https://github.com/Samioul51/)
- LinkedIn: [A. K. M Samioul Islam](https://www.linkedin.com/in/a-k-m-samioul-islam/)
- Portfolio: [akm-samioul-islam.vercel.app](https://akm-samioul-islam.vercel.app/)

## πŸ”— Links

- **Client Repository:** [ThreadFlow Client](https://github.com/Samioul51/ThreadFlow-Client)

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

No packages published