Giter Site home page Giter Site logo

contacts-api's Introduction

Contacts api

Set up the project

  • First clone this repository in your machine
  • Open the terminal and run npm install
  • Then cd contact-cli
  • Once you're in contact-cli directory run npm install
  • Then npm link

Starting the api

  • To start the api simply write npm start in the contact-api terminal

URL ENDPOINTS

Cli information

  • After setting up the project open a git bash terminal and cd contact-cli

  • IMPORTANT!!! Make sure the api is running at the same time in the other terminal.

  • Run $ contact in the git bash terminal

    • response

Usage: contact [options] [command]

Options:

-V, --version output the version number -h, --help display help for command

Commands: getall
get all contacts set delete, get, update or create a contact

help [command] display help for command

  • Run $ contact getall to find all contacts
  • Run $ contact set delete and when ? Enter the id of the contact that you want to delete simply type the id to delete a contact
  • Run $ contact set getbyid and when ? Enter the id of the contact that you want to find simply type the id to find a contact by id
  • Run $ contact set create and answer the questions about the data to create a contact
  • Run $ contact set update and answer the questions about the data to update a contact

Metrics

  • Creating a contact with over 1000 contacts in the database

    • create
  • Updating a contact with over 1000 contacts in the database

    • update
  • Deleting a contact with over 1000 contacts in the database

    • delete
  • Get a single contact with over 1000 contacts in the database

    • getbyid
  • Get all contacts with over 1000 contacts in the database

    • getall

contacts-api's People

Contributors

reiikonomi avatar

Watchers

Kejvi DOKO avatar  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.