Git Product home page Git Product logo

js_module_3's Introduction

JS_Module_3

TODO app and App for finding a specific character in the database (rickandmortyapi.com)

Deploy

$ npm install

Before running the applications [npm install] command should be run.
It downloads needed modules and environment for apps.

TODO app

Application for your notes. Using it you can perform the following operations with your notes:

  • Add new note
  • Read note by title
  • Remove by title
  • List all notes
  • Read notes from xlsx file
  • Write notes to xlsx file
  • Update title or body of the selected note
  • Sort notes by title, title lengh, body length or date of adding

Usage

Note: Aplication should be started in directory containing its files (todo-app). All the commands supports a parameter (--path or -p): path to notes file you want to work with.

Add a new note

index.js add --title "title" --body "body"

Parameters title and body are required. This command will add a new note to the notes list. Unique title should be used.

List all notes

index.js list

This command will list all the notes. Parameers are not required.

Read the note by title

index.js read --title "title"

This command will read and display the note by its title. Parameter title is required.

Read the note by title

index.js remove --title "title"

This command will remove the note by its title. Parameter title is required.

Read notes from xlsx file

index.js readXLSX --pathXLSX "pathToXLSXFile"

This command will read notes from the specified xlsx file and write to json file (default or specified). Parameter pathXLSX is optional (default: "./resources/notes.xlsx").

Write notes to xlsx file

index.js writeXLSX --pathXLSX "pathToXLSXFile"

This command will write notes to the specified xlsx file and write from json file (default or specified). Parameter pathXLSX is optional (default: "./resources/notes.xlsx").

Update title or body of the note

index.js update --title "Title" --newTitle "new title" --newBody "new body"

This command will update title or body of the specified note. You can update only title or body or both.

Sort notes

index.js sort --sortType "sort type" --order "sort order"

This command will sort the notes by sort types: [title, titleLength, bodyLength and date] and orders: [asc, desc]. This commands sorts notes by title in ascending order if it is launched without parameters.

Get-R&MCharacters app

Application for finding characters in R&M Characters DB rickandmortyapi.com.

Usage

Note: Aplication should be started in directory containing its files (get-richandmorty-character-app).

Available parameters for searh:

  • --id, -i Number of ID
  • --name, -n Name of character
  • --status, -u Status: alive or dead
  • --species, -p Species of character
  • --type, -t Type
  • --gender, -g Gender: male or female
  • --origin, -o Origin name
  • --location, -l Location name

You can use any combination of these parameters for searching.

Examples:

node index.js --id 2
node index.js --name 'rick sanchez' --status alive
node index.js --gender male --specious human
node index.js --gender Female --status alive

File watcher app

This application watches for changes in csv files in defined directory and exports csv to json files to defined directory.

Available parameters:

  • --pathToWatch Path of the dir to whatch
  • --pathImportTo Path of the dir to import json files (objects)

Default values of parameters:
pathToWatch = './data'
pathImportTo = './resources'

js_module_3's People

Contributors

sergepletnev avatar

Watchers

 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.