Building Your First CLI App in Node

Building Your First CLI App in Node
Building Your First CLI App in Node
English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 1h 16m | 204 MB

Put your Node.js skills to practical use by building a CLI App in Node.js. Many software developers, system administrators, and other advanced users frequently use command-line interfaces (CLIs) to perform tasks more efficiently, configure their machine, or access programs and features not typically available through the more popular graphical interfaces. If you’re looking for a good course to build your Node skills or you’ve ever been curious about what it takes to develop an app or tool in the CLI, then this course is for you. Join Naomi Freeman as she demonstrates how to build a command-line developer tool in Node.js that automates a few key Git commands. Discover how to leverage the Node.js and npm ecosystem of packages and modules to connect to the GitHub RESTful API with Ocktokit.

Topics include:

  • Initializing a Git repository
  • Creating the user interface
  • GitHub authentication
  • Creating a prompt for user input
  • Validating user input
  • Authenticating with GitHub
  • Creating a GitHub repository
  • Automating Git commands
Table of Contents

1 Build a CLI app in Node
2 What you should know
3 What you need to start

The Git Initialize Process
4 The Git initialize process
5 The course project
6 Set up a Node project
7 Install the Node dependencies

Build App Foundations and Structure
8 Create the basic file structure
9 Create the utility package
10 Create the user interface
11 Check Git repository status

GitHub Authentication
12 Understand user prompts
13 Create a prompt for user input
14 Validate user input
15 Store GitHub credentials for reuse
16 Receive the GitHub token
17 Authenticate with GitHub
18 Register a new token
19 Implement the GitHub token

Create a GitHub Repository with the CLI App
20 Prompt the user for repository details
21 Create a repository
22 Generate a .gitignore file
23 Automate Git commands
24 Create a remote repository command

Finalize Your App
25 Run multiple npm commands

26 Next steps