https://github.com/yesarib/typescript-oop
🌱 This project provides a simple example of Object-Oriented Programming (OOP) in TypeScript.
https://github.com/yesarib/typescript-oop
api console-application oop oop-in-typescript typescript
Last synced: 27 days ago
JSON representation
🌱 This project provides a simple example of Object-Oriented Programming (OOP) in TypeScript.
- Host: GitHub
- URL: https://github.com/yesarib/typescript-oop
- Owner: Yesarib
- Created: 2023-12-15T12:55:17.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T22:18:37.000Z (almost 2 years ago)
- Last Synced: 2025-02-25T17:44:12.898Z (10 months ago)
- Topics: api, console-application, oop, oop-in-typescript, typescript
- Language: TypeScript
- Homepage:
- Size: 60.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TypeScript OOP Example
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.
## Getting Started
To use the project, you can follow the steps below.
### Prerequisites
- Node.js must be installed.
- TypeScript compiler must be installed (you can install it globally with the command `npm install -g typescript` if needed).
### Installation
1. Clone the repository to your machine:
```bash
git clone https://github.com/Yesarib/Typescript-OOP.git
```
2. Navigate to the project directory:
```bash
cd Typescript-OOP
```
3. Install dependencies:
```bash
npm install
```
### Usage
After the project is set up, you can follow these steps:
1. Compile the TypeScript code:
```bash
tsc
```
2. Run the application:
```bash
npm start
```
3. 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.