Commit Graph
17 Commits
Author SHA1 Message Date
andwati 0a3e5cfa95 feat: update default value for _id fields to use a function for uuid generation 2026-01-13 00:32:11 +03:00
andwati 2efdc8910f feat: refactor repositories and services to use type imports and improve structure 2026-01-13 00:28:49 +03:00
andwati 64e304214b feat: add bcrypt for password hashing and implement logger utility 2026-01-13 00:18:44 +03:00
andwati ae6521977d feat: implement authentication and product management services with validation schemas 2026-01-13 00:04:13 +03:00
andwati da428f83bc feat: implement order and product models, services, and routes with validation 2026-01-13 00:03:48 +03:00
andwati 8f2477b25e feat: add rate limiting middleware and role-based access control 2026-01-12 23:39:05 +03:00
andwati 85153e8c02 feat: implement authentication middleware and extend Express Request type 2026-01-12 23:36:37 +03:00
andwati 95c24b9925 feat: initialize Express application with middleware and routes
- Set up Express application in src/app.ts with CORS, JSON parsing, and logging.
- Implement health check route.
- Add authentication, product, and order routes.
- Create error handling middleware for centralized error management.

feat: add authentication middleware with placeholder endpoints

- Implement /register and /login routes in src/middleware/auth.middleware.ts with 501 status responses.

feat: create error handling middleware

- Add error handling middleware in src/middleware/error.middleware.ts to manage errors and send appropriate responses.

feat: implement server startup logic

- Create server entry point in src/server.ts to connect to the database and start the Express server.

feat: add JWT utility functions for token signing and verification

- Implement JWT signing and verification functions in src/utils/jwt.ts with payload interface for user roles.
2026-01-12 23:24:43 +03:00
andwati 9e65d2f2d5 feat: add Dockerfile and docker-compose configuration for application setup 2026-01-12 22:41:44 +03:00
andwati 5b85cee125 feat: implement MongoDB connection logic 2026-01-12 22:17:22 +03:00
andwati a3496a7f41 feat: add environment configuration and required variables 2026-01-12 19:45:02 +03:00
andwati 0ca8f238a2 feat: add initial files for Docker, controllers, models, repositories, routes, services, utils, validation, and tests 2026-01-12 19:25:43 +03:00
andwati a74bc1b3b7 feat: add initial application and server files, include dotenv and mongodb dependencies 2026-01-12 19:22:30 +03:00
andwati 9ced4b518b feat: add TypeScript configuration and initial config file
- Created a new TypeScript configuration file (tsconfig.json) with recommended settings for a Node.js environment.
- Added an initial configuration file (config.ts) to the src/config directory.
2026-01-12 19:06:49 +03:00
andwatiandGitHub 6e135d5e0a Add MIT License to the project 2026-01-12 18:39:26 +03:00
andwatiandGitHub 083b3c9c30 Create README.md 2026-01-12 18:37:59 +03:00
andwati 2755e38ceb initial commit 2026-01-12 18:28:55 +03:00