Skip to content

This is a TypeScript project I created to use the CLI to create different vehicles using classes and interfaces.

Notifications You must be signed in to change notification settings

nathangreen1632/vehicle-builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vehicle Builder

License: MIT

Description

The Vehicle Builder CLI is an interactive command-line application designed to provide a fun and user-friendly experience for building vehicles. Powered by Node.js and the Inquirer package, this application guides you through a series of prompts, offering two main paths to explore:

  1. Select a Pre-Made Vehicle: Browse through a list of pre-configured vehicles. Each option is thoughtfully crafted to provide a variety of models and configurations.

  2. Create Your Own Vehicle: Unleash your creativity! Customize your vehicle by choosing from a range of features such as type, color, engine options, and more. Tailor the vehicle to your preferences step by step.

Whether you’re looking for inspiration or want to design your dream vehicle from scratch, this CLI tool ensures a seamless and enjoyable experience. Built with TypeScript and JavaScript, it offers robust functionality and type safety, making it a reliable tool for any user.

Table of Contents

Installation

To use the Vehicle Builder CLI, follow these steps:

  1. Ensure Node.js and npm are installed:

    • Download and install Node.js from the official website.
    • Verify installation by running the following commands in your terminal:
      node -v
      npm -v
  2. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
  3. Install dependencies:

    • Run the following command to install the required packages, including Inquirer:
      npm install
  4. Run the application:

    • Start the CLI tool by executing:
      npm start

Now you’re ready to explore and build vehicles with this interactive tool!

Usage

To interact with the Vehicle Builder CLI program, follow these steps:

Navigation

Use the arrow keys on your keyboard to navigate through the options presented in the prompts.

Selection

Press the Enter key to select your desired option from the menu.

Input

If prompted for custom input (e.g., naming your vehicle), type your response directly into the terminal and press Enter to confirm.

Customization

When building your own vehicle, follow the guided prompts to choose attributes such as vehicle type, color, engine specifications, and additional features. Use the arrow keys and Enter key to finalize your choices.

Confirmation

At the end of the process, review your selection. The application will provide a summary of the pre-made or custom vehicle you have built.

Contributing

Contributions are welcome and greatly appreciated! Follow these steps to contribute to the project:

  1. Fork the repository:

    • Click the "Fork" button on the repository’s GitHub page to create a copy under your own account.
  2. Clone your fork:

    git clone <your-forked-repository-url>
    cd <repository-directory>
  3. Create a new branch:

    git checkout -b <branch-name>
  4. Make your changes:

    • Implement your desired changes or improvements to the code.
  5. Test your changes:

    • Ensure your changes work as expected and do not introduce any new issues.
  6. Commit your changes:

    git add .
    git commit -m "Description of your changes"
  7. Push to your fork:

    git push origin <branch-name>
  8. Create a Pull Request:

    • Navigate to the original repository and click New Pull Request.
    • Select your branch and provide a detailed description of your changes.

Your contributions will be reviewed, and feedback will be provided as necessary. Once approved, your changes will be merged into the main project. Thank you for helping make this project better!

Tests

There are currently no test instructions for this program. This application does not include automated tests or testing scripts. Users are encouraged to manually verify functionality by running the application and interacting with the CLI. If you would like to contribute tests to this project, feel free to follow the contributing guidelines above and submit a pull request with your additions.

License

This project is licensed under the MIT license. Click here for more information.

Questions

If you have any questions, please feel free to contact me on GitHub at nathangreen1632.

Video Tutorial

Watch the video on YouTube

About

This is a TypeScript project I created to use the CLI to create different vehicles using classes and interfaces.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published