A TypeScript-based shoe store application built with Express.js.
- RESTful API for shoe catalog management
- TypeScript for type safety
- Express.js web framework
- CORS enabled for cross-origin requests
- Security with helmet
- Logging with morgan
- Node.js (v16 or higher)
- npm or yarn
- Clone the repository
- Install dependencies:
npm install
Start the development server:
npm run devBuild the project:
npm run buildRun the production server:
npm startGET /api/shoes- Get all shoesGET /api/shoes/:id- Get a specific shoePOST /api/shoes- Create a new shoe- PUT /api/shoes/:id` - Update a shoe
DELETE /api/shoes/:id- Delete a shoe
src/
├── index.ts # Main application entry point
├── routes/ # API routes
│ └── shoes.ts
├── models/ # Data models
│ └── shoe.ts
├── controllers/ # Business logic
│ └── shoeController.ts
├── services/ # Business services
│ └── shoeService.ts
├── utils/ # Utility functions
│ │ └── validation.ts
└── types/ # TypeScript type definitions
└── index.ts
MIT