techreagan / phone-book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Phone Book

Features

CRD (Create, Read And Delete)

  • Store unique phone numbers
  • List phone numbers in phone books
  • Get single contact by phone number
  • Get single contact by id
  • Delete contact by id

Details

The main logic for this challenge is in the components/phonebooks.service.ts file, you could create an instance and test all methods, but I decided to create endpoints to test it. example below

const phoneBookService: PhoneBookService = PhoneBookService.getInstance()

// Add phonenumber
phoneBookService.create({
	phoneNumber: '23400000',
	name: 'Tech Reagan',
	email: 'test@test.com',
})

// Get unique phonenumber
phoneBookService.findByPhoneNumber('+23400000')

API Documentation

Extensive and testing documentation with postman: Phone book API

Installation

Install all npm dependecies

npm install

Start web server

node run dev

About


Languages

Language:TypeScript 100.0%