#nodejs #http
Hi Everyone!
In this video, I am going to teach you Node JS by building a command line interface application. The idea behind the CLI app is to teach you the basics of Node JS process object, fs module, creating servers and so much more. The CLI app is called Storyfy. Storyfy is a powerful Node.js command-line interface application that allows you to create, manage, and display short creative stories. Built with a focus on simplicity and functionality, Storyfy combines CLI commands with a web server to provide both terminal and browser-based interaction with your stories.
*-*-*-*-* Get Alerts for New Courses and Content Releases
https://arnacode.com/
*-*-*-*-* Features
- Create Stories: Add new stories with custom tags via command line
- Story Management: List, find, and delete stories with simple commands
- Tag Organization: Organize stories with custom tags for easy filtering
- Web Interface: View all stories in a beautiful, responsive web layout
- Database Storage: Stories persist between sessions in a JSON database
- Customizable: Easy to extend and customize for your needs
Chapters
00:00:00 CLI App Overview
00:07:22 Node JS Basics
00:23:22 Creating a Simple Calculator with Node JS
00:40:00 Getting started with Stories CLI App
00:51:35 Introducing the yargs Library
00:58:25 Creating a Simple Boilerplate Command - yargs Library
01:05:45 CLI App File Structure
01:10:57 Writing the Database Abstraction Logic
01:21:55 Creating a New Story - Function
01:25:13 Creating a New Story - CLI Command
01:44:21 Retrieving All Stories - CLI Command
01:45:50 Retrieving All Stories - Function
01:49:18 Retrieving one Story - CLI Command
01:53:17 Retrieving one Story - Function
01:55:52 Deleting one Story - CLI Command
02:00:19 Deleting one Story - Function
02:07:24 Deleting all Stories - CLI Command
02:10:02 Deleting all Stories - Function
02:13:23 Creating the Stories Vanilla Node JS Server
02:39:35 Server Side HTML - CLI Command
02:44:24 Conclusion
*-*-*-*-* Source Code
https://github.com/ArnaCode/Storyfy-NodeJS-CLI-App