- 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.
- 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.