This is the back-end component of the WTWR (What To Wear) web application. It provides a RESTful API with user authentication and CRUD operations for managing user profiles and clothing items based on weather conditions.
https://github.com/Pavkv/se_project_react
https://whatowearexpress.twilightparadox.com
- User registration and login with hashed passwords (bcrypt)
- JWT-based authentication and protected routes
- Full CRUD for clothing items
- Input validation using Celebrate and Joi
- Centralized error handling with meaningful status codes
- MongoDB with Mongoose ODM
- Deployed on a remote server with HTTPS and domain routing via Nginx
- Node.js
- Express
- MongoDB with Mongoose
- JWT (JSON Web Tokens)
- Celebrate (Joi validation middleware)
- bcryptjs (for password hashing)
- dotenv
- ESLint (Airbnb base)
- Prettier (code formatting)
- Nginx (reverse proxy + HTTPS)
- Certbot (SSL via Let’s Encrypt)
- All protected routes require a valid JWT token in the
Authorization
header. - Celebrate and Joi are used to validate all input data.
- Custom error classes and middleware for error handling.
This project is licensed under the ISC License.
Pasha Zobov 2025 © WTWR
Feel free to add suggestions or submit issues via GitHub.