This is a Node.js application built with TypeScript, Express, and MongoDB. It provides an API for managing products and orders. The application includes functionalities such as creating, retrieving, updating, and deleting products, as well as creating and retrieving orders.
Make sure you have the following installed on your local machine:
- Node.js (v14 or later)
- npm (v6 or later)
- MongoDB (running locally or a connection URL)
-
Clone the repository
git clone https://github.com/TalhaT298/Assingment-2-Level-2
cd repository-directory
-
Install dependencies
npm install
Set up environment variables
Create a .env file in the root directory of your project and add the following variables:
PORT=5000 DATABASE_URL=mongodb://localhost:27017/your-database-name