1.2.0 • Published 5 years ago

cstask v1.2.0

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
5 years ago

CSTask

Cloudstrap evaluation assignment 2019 - Node.js Backend

Create a Node.js HTTP server based on Parse Server. The server must have a class called Contacts. Each contact must have a name and a phone number fields. The server should have a cloud function called create_contact which will insert entries in the class and validate that the phone numbers are in the correct format for Bulgaria - +359 | 089 | 088 | 087 etc.

Also create a node.js CLI application that will consume this HTTP API by allowing you to add, edit and delete contacts from the command line. This application should also allow listing all contacts or searching in them, by contact name or number. Make sure to use the Parse Node.js SDK wherever possible.

NOTES: The searching must happen in the CLI application. This means that all the numbers should be fetched from the HTTP server while the searching happens in-memory. The representation of the results is entirely up to you. Make sure to test with both small and big datasets.

The source code should be accessible through GitHub or GitLab.

You have 7 days to complete the assignment.

Install from npm

npm i -g cstask

Usage

  • show available commands
cstask help
  • add contact {"Uncle_Peco","+359896607534"} to cloud
cstask add Uncle_Peco +359896607534
  • info show all contacts
cstask info
  • delete contact from cloud by id
cstask del @id_get_from_info_table
  • update contact to cloud
cstask update @id_get_from_info_table @new_name @new_phone_number
  • search by name or by phone number
cstask search name Bongo
cstask search phone +359896607534
1.2.0

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago