Git Product home page Git Product logo

entries-manager-cli's Introduction

Entries Manager CLI

A Node.js script that allows users to edit a .json file containing a collection of key/value pairs.

This is an in-class project from the web-apps module, check out the module repo for some practice problems before diving right in.


Getting Started

  1. Clone the repo
  2. cd into the project

Learning Objectives

  • Using CLI arguments
  • Writing to the file system
  • Structuring and using CLI apps
  • Reverse-engineering

Running the Demo

This repo comes with a fully-functioning (but unreadable!) demo. Play with this demo for a while to make sure you understand how your entries-manager-cli should behave.

  • node demo.min.js or node demo.min.js -h

Complete the Exercise

Fill in the blanks!


Challenges

All done? Copy your finished code into a new file so you don't loose your working code, and refactor the new file to:

  • Read & write from a .json file with this schema:
    • [
        {key1: "value 1"},
        {key2: "value 2"},
        ...
      ]
      
  • Read & write from a .txt file organized like this:
    • "key 1":"value 1","key 2:"value 2",...
  • Make a better User Experience
    • Create a package.json file in this directory ($ npm init)
    • install boxen
    • log boxes instead of just text!

entries-manager-cli's People

Contributors

colevanderswands avatar ayseakyol avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.