This project provides a simple example of Object-Oriented Programming (OOP) in TypeScript. It develops an API that includes concepts of customers, products, and orders. The project involves TypeScript and a basic Node.js application.
To use the project, you can follow the steps below.
- Node.js must be installed.
- TypeScript compiler must be installed (you can install it globally with the command
npm install -g typescript
if needed).
-
Clone the repository to your machine:
git clone https://github.com/Yesarib/Typescript-OOP.git
-
Navigate to the project directory:
cd Typescript-OOP
-
Install dependencies:
npm install
After the project is set up, you can follow these steps:
-
Compile the TypeScript code:
tsc
-
Run the application:
npm start
-
The application will run through the console, simulating various customer, product, and order operations. Use api end-points while the project is running.
Note: Since the project runs in the console, running it again will delete the previous data.