This repository contains the code for an Express.js application using TypeScript, designed to handle product and order management. This README provides an overview of the project structure, setup instructions, and usage guidelines.
Follow these steps to set up and run the project locally:
-
Clone the repository:
git clone https://github.com/mahamodulhasanmoon/express-ts-assignment-2.git cd label-2-assignment
-
Install dependencies:
npm install
-
Configure environment variables:
Create a
.env
file in the root directory and add the following:PORT=4000 MONGODB_URI=your_mongodb_connection_string
-
Compile TypeScript:
npm run build
-
Start the server:
npm start
The API is documented using OpenAPI 3.0. The openapi.yaml
file contains the complete documentation.
- Name: Mahamodul Hasan Moon
- Email: mahamodulhasan.moon@gmail.com
- Website: https://mahamodulhasan.me
- phone: 8801734921621