simple-conversation-cli

1.0.0 • Public • Published

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

  1. Clone this repository to your local machine:
git clone https://github.com/Suleman1411/oop-person-interaction-application
  1. Navigate to the project directory:
cd oop-person-interaction-application
  1. Install the project dependencies:
npm install
  1. Run the application:
node index.js

The application will prompt you with questions, and you can interact with Urveshi accordingly.

Code Overview

  • The Person class represents a generic person with a name and personality.
  • The Student class extends the Person class 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 programStart function 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:

  1. Fork the repository
  2. Create a new branch for your feature: git checkout -b feature/your-feature-name
  3. Make your changes and commit them: git commit -m 'Add your feature'
  4. Push to the branch: git push origin feature/your-feature-name
  5. Create a pull request on the original repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Readme

Keywords

none

Package Sidebar

Install

npm i simple-conversation-cli

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

21.8 kB

Total Files

6

Last publish

Collaborators

  • sulemanpervez