Giter Site home page Giter Site logo

address-book-2.0's Introduction

Address BOOK APPLICATION

made by Mojiboye Emmanuel

A website where you can add in your contacts, delete them or edit them

Technologies Used

  • Git
  • Html
  • CSS
  • BootStrap
  • Javscript
  • jQuery
  • Bootstrap
  • JavaScript Objects
  • JavaScript Mock databases

Description

This is an application for adding contacts to an address Book.... In this website you can easily add in contacts, remove contacts or edit contacts and With my amazing mock database, you can add in new contacts just like the way you do with your mobile phone

Setup/Installation

  • Open the directory.
  • Click on the index.html file. _Note: the website is designed to run on a web browser just be sure you have one. _
  • That's all the installation process you need to carry out. Have fun while working with this application. If you think its cool, be sure to give the application a thumbs up

Known Bugs

As at the launching of this Project there are zero bugs in it. But if you do find a bug in it, be sure to notify me via my various social media handles below

WEBSITE LINK

https://emzzy241.github.io/Address-BOOK-2.0/

License

Licensed under the GNU General Public License © 2022 by Mojiboye Emmanuel All Rights Reserved.

Contact

Connect with me @Emmanuel.9944 on instagram and on all other social media pages all @Emmanuel Oluwole

ALL THE MANUAL TESTS FOR MY APPLICATION

Describe: The very first constructor of our Application; the function for Contacts

Test: "It will check if the console remembers our constructor and associates it with the testContact variable" Code: let testContact = new Contact("Emmanuel", "Oluwole", "Mojiboye", "09012857304", "[email protected]");

testContact.MiddleName;

Expected Output: 'Oluwole'

Test: "A prototype method would be created for Contacts constructor and the method would concatenate user's last name and first name together" Code: let testContact = new Contact("Emmanuel", "Oluwole", "Mojiboye", "09012857304", "[email protected]");

testContact.fullName();

Expected Output: 'Mojiboye Oluwole Emmanuel'

Describe: The second constructor; the constructor for our database has been written: Let us create the first method for our database that will help us to add in contacts

Test: "Testing the first method for our mock database: the addContact() method" Code:

let addressBook = new AddressBook();

let contact = new Contact("Adanna", "Mercy", "Okoli", "+234-858585990", "[email protected]");

let contact2 = new Contact("Jennifer", "Ebun", "Ololade", "+227-9099900919", "[email protected]");

addressBook.addContact(contact); addressBook.addContact(contact2);

Test: "Testing if our method candifferentiate between two people if their names are both Emmanuel"

Code: let emmaContact1 = new Contact("Emmanuel", "Michael", "Ojedayo", "+234059509049", "[email protected]");

let emmaContact2 = new Contact("Emmanuel", "Richie", "Bimbola", "+23405334566", "[email protected]");

addressBook.addContact(emmaContact1); addressBook.addContact(emmaContact2);

Expected Output: {1: Contact, and 2: Contact}

Test: "Testing if our method cand ifferentiate between two people if their names are both Emmanuel"

Code: let emmaContact1 = new Contact("Emmanuel", "Michael", "Ojedayo", "+234059509049", "[email protected]");

let emmaContact2 = new Contact("Emmanuel", "Richie", "Bimbola", "+23405334566", "[email protected]");

addressBook.addContact(emmaContact1); addressBook.addContact(emmaContact2);

Expected Output: {1: Contact, and 2: Contact}

Describe: The method for finding contacts

Test: "A test for checking if the findContact() methods can truly find a user's contact"

Code: let contact = new Contact("Adanna", "Mercy", "Okoli", "+234-858585990", "[email protected]");

let contact2 = new Contact("Jennifer", "Ebun", "Ololade", "+227-9099900919", "[email protected]");

addressBook.findContact(2); Expected Output: Contact {firstName:........ id: 2}

Describe: The method for deleting contacts

Test: "When we run our method on a contact,It will find that contact and delete it"

Code: let contact = new Contact("Adanna", "Mercy", "Okoli", "+234-858585990", "[email protected]");

let contact2 = new Contact("Jennifer", "Ebun", "Ololade", "+227-9099900919", "[email protected]");

addressBook.deleteContact(2);

Expected Output: Contact 2 gets deleted and its Id is never reused when we add in more contacts

Describe: The method for showing users full address in one line and only separating it with a comma

Test: "When we run our method on a contact variable(datatype name is object) storing our contact object, it returns user's workAddress on a single line, users homeAddress on another line and user's schoolAddress on another line with commas separating them"

Code: let testOtherAddresses = new OtherAddresses("Ishaga", "Ogba", "Lagos");

let testOtherAddresses2 = new OtherAddresses("Matogun", "Arolambo", "Ogun");

testOtherAddresses.fullAddress();

Expected Output: OtherAddresses {street: 'Ishaga', city: 'city', state:'Lagos'........ }

address-book-2.0's People

Contributors

emzzy241 avatar

Stargazers

 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.