1.0.0 • Published 2 years ago
simple-interactive-cli v1.0.0
Person Interaction Application
This is a simple command-line application written in TypeScript that simulates a conversation with a person, in this case, a student named Urveshi. The application allows users to interact with Urveshi by asking and answering questions.
Table of Contents
Features
- Users can ask Urveshi how she is feeling, where she lives, and what topics she wants to discuss.
- Urveshi responds with appropriate answers based on user input.
- Users can discuss Urveshi's personality, whether she is an extrovert, introvert, or ambivert.
Prerequisites
Before running the application, make sure you have the following installed:
- Node.js: You can download and install Node.js from nodejs.org.
Usage
- Clone this repository to your local machine:
git clone https://github.com/Suleman1411/oop-person-interaction-application- Navigate to the project directory:
cd oop-person-interaction-application- Install the project dependencies:
npm install- Run the application:
node index.jsThe application will prompt you with questions, and you can interact with Urveshi accordingly.
Code Overview
- The
Personclass represents a generic person with a name and personality. - The
Studentclass extends thePersonclass and adds methods for interacting with the user using the Inquirer library. - Inquirer is used to prompt the user with questions and collect responses.
- The
programStartfunction initiates the interaction with Urveshi and sets her personality based on the user's input.
Contributing
If you'd like to contribute to this project, please follow these steps:
- Fork the repository
- Create a new branch for your feature:
git checkout -b feature/your-feature-name - Make your changes and commit them:
git commit -m 'Add your feature' - Push to the branch:
git push origin feature/your-feature-name - Create a pull request on the original repository.
License
This project is licensed under the MIT License - see the LICENSE file for details.
1.0.0
2 years ago