This backend application supports the Sammly T-Shirt Design Platform, providing robust server-side functionality for user management, authentication, product handling, and image processing.
- Node.js (Version 16+)
- MongoDB (Local or cloud instance)
- npm
-
Clone the repository:
git clone https://github.com/Node-React-Designer-Ecommerce/Node-Designer-E-commerce.git cd node-designer-e-commerce
-
Install dependencies:
npm install
-
Start the server:
npm start
- Express.js: Web application framework
- MongoDB: Database
- Mongoose: ODM for MongoDB
- JWT: Authentication
- Bcrypt: Password hashing
- Authentication
jsonwebtoken
bcryptjs
- File Handling
multer
sharp
imagekit
- Validation
joi
- Utilities
dotenv
cors
winston
(logging)
- User Authentication
- Secure API Endpoints
- Image Upload & Processing
- Email Notifications
- Error Handling
- Validation Middleware
Create .env
file with:
MONGODB_CONNECTION_STRING
JWT_SECRET
IMAGEKIT_PUBLIC_KEY
IMAGEKIT_PRIVATE_KEY
- Password encryption
- JWT-based authentication
- Input validation
- CORS protection
- Error logging
/auth
: User registration/login/products
: Product management/orders
: Order processing/designs
: T-Shirt design handling
- Nodemon: Automatic server restart
- Morgan: HTTP request logging
- Pug: Email template rendering
Utilizes Winston for comprehensive logging and error tracking
- Fork the repository
- Create feature branch
- Commit changes
- Push to branch
- Create Pull Request
- Supports Node.js >= 16
- Compatible with various cloud platforms
- Environment-specific configurations
ISC License
For issues or questions, open a GitHub issue.