Build Your Own CLI App in 5 Minutes (ClackJS and Node.js Tutorial)

preview_player
Показать описание
Build Your Own CLI App in Just 5 Minutes! 🚀

- Importing the Clack prompts framework
- Creating an intro and outro
- Building a trivia quiz with questions/answers
- Displaying interactive prompts with Clack
- Publishing as an NPM package
- Deploying with NPX

In less than 5 minutes, you'll have a fully functioning CLI quiz game that tests your command line knowledge. Customize it and publish your own creative CLI apps!

Twitter 🐦

TikTok 📱

TIMESTAMPS
-----
0:00 Intro
0:21 What we are building
1:01 Project Initialize
1:31 Creating our Intro
1:47 Creating the questions
2:17 Displaying our questions (and spinner!)
2:42 Adding our logic (for correct answers)
2:56 Deploying with npx
3:23 What you should know before using Clack
3:40 Warp hoodie!!!
Рекомендации по теме
Комментарии
Автор

Make sure you let us know what the secret code is 👀

warpdotdev
Автор

where is the link for the list of CLI ?

pablomza
Автор

The command line is a tool that is ripe for change.

arupghosh
Автор

What is that tool where the prompt stays at the top of the terminal?

KaiBrabo
Автор

The command line is a tool that is ripe for change

karmanbatth
Автор

Thanks for this video, but I tried to follow your instructions which does not lead into functional code.

1.) I had to add "type": "module" into my package.json
2.) I had to add picocolors
3.) I had to change code "options.push({value : answer});"
4.) I had to add more code:
const questions = [question1, question2, question3];
for (let index = 0; index < questions.length; index++) {
const question = questions[index];
await answerQuestion(question.question, question.answerArray, question.correctAnswerIndex);
}

Please provide a link to a Github Repository next time, so that someone who is not that experienced in JS and Node.js can follow the tutorial.

And maybe take it a little bit slower. You wanna do a tutorial in 5 minutes but I was sitting half or more an hour to get it to work. Let's make it a 10 minutes tutorial for both of us. ;-)

circlesmiler
Автор

What is the name of the host of this video?

Автор

youtuber_commenter --set-repeat-penalty=100

sharex
Автор

The command line is a tool that is ripe for change.

nilaybanerjee
Автор

The command line is a tool that is ripe for change

besilent
Автор

The command line is a tool that is ripe for change.

matt-krd
Автор

The command line is a tool that is ripe for change.

coneuer
Автор

The command line is a tool that is ripe for change.

droid_nest
Автор

The command line is a tool that is ripe for change.

inufnhx
Автор

The command line is a tool that is ripe for change.

legitcyberlord
Автор

The command line is a tool that is ripe for change.

rodrigoareal
Автор

The command line is a tool that is ripe for change.

JustEnjoyLfe
Автор

The command line is a tool that is ripe for change.

arsenarakelian
Автор

The command line is a tool that is ripe for change.

kevinzunigacuellar
Автор

The command line is a tool that is ripe for change.

matveysmychkov