mirror of
https://github.com/andwati/order-service.git
synced 2026-10-18 10:22:52 +00:00
95c24b9925e5c22e35deb6beba6e82b3e9fa26fa
- 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.
an order service with authentication,data persistence etc
Languages
TypeScript
100%