https://github.com/fahadhossain24/u-tee-hub-server
Custom t-shirt ordering application with exist both client and vendor profile
https://github.com/fahadhossain24/u-tee-hub-server
node-cron nodejs socket-io stripe swagger typescript winston
Last synced: 27 days ago
JSON representation
Custom t-shirt ordering application with exist both client and vendor profile
- Host: GitHub
- URL: https://github.com/fahadhossain24/u-tee-hub-server
- Owner: fahadhossain24
- License: mit
- Created: 2025-06-23T12:09:51.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-06-25T12:16:39.000Z (11 months ago)
- Last Synced: 2025-06-25T13:26:13.873Z (11 months ago)
- Topics: node-cron, nodejs, socket-io, stripe, swagger, typescript, winston
- Language: TypeScript
- Homepage:
- Size: 1.87 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🚀 Secure Node, Express Starter with Mongoose
[](https://nodejs.org)
[](https://www.typescriptlang.org/)
[](https://github.com/fahadhossain24/ts-node-server1.0/actions)
A secure and scalable Express.js boilerplate built with TypeScript. It features rate limiting, logging with daily rotation, Helmet-based HTTP security headers, and production-ready configurations.
---
## ✨ Features
- ✅ **Helmet CSP** with development/production-friendly policies
- 🛡️ **Rate Limiting** with detailed IP tracking and request stats
- 📝 **Winston Logging** with Daily Rotate File setup
- ⚙️ **Environment-based config management**
- 📁 **Organized folder structure** for clean architecture
- 🔧 **Built-in support for Docker, CI/CD, and testing (extendable)**
## ⚙️ Getting Started
### 1. Clone the Repository
```bash
git clone https://github.com/fahadhossain24/ts-node-server1.0.git
cd ts-node-server1.0
```
### 2. Environment Setup
```bash
cp .env.example .env
```
### 3. Install Depencencies
```bash
yarn install
# or
npm install
```
### 4. Run in Development
```bash
yarn dev
# or
npm run dev
```
### 5. Run in Production
```bash
npm run build
npm start
# or
yarn build
yarn start
```
## 📈 Sample Rate Limiting Log
[RateLimit] | IP: 192.168.12.31 | Total: 42 | First: 4/13/2025, 10:12:30 AM | Last: 10:15:22 AM | Path: /api/user | Hits on path: 12
## 🧰 Technologies what used
- Language — Typescript
- Runtime - NodeJS
- Framework - ExpressJS
- Database - MongoDB with Mongoose ODM
- Authentication - JWT & OAuth with passportJS
- Logging - Winston + Daily Rotate File & morgan
- API Documentation - Swagger & Swagger UI
- Validation - Zod
- Security - Helmet for security headers, CORS and Rate limiting for DDoS protection.
- Performance - compression middleware
- Unit Test - Jest
- Development - Prettier & ESLint
- Containerization - Docker
- Deployment - CICD with Github Actions, AWS-EC2
## 📄 License
This project is licensed under the MIT License.
---
Built with ❤️ by Fahad Hossain