Skip to content

etnk125/Contact3125

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting start

backend

  cd server
  npm install

  // start backend server 
  npm run dev

frontend

  cd contact3125
  npm install

  // start vue server
  npm run dev

note: open another terminal by click split


EGCO427: Assignment 1(20%)–MAX. 2members/group

Create the “Contact List” web application by using Node.js and/or Vue.js(v3). This web application must contain the list of features below.Your Vue project name must be “Contact<Last 4 Digits of StudentID>” such as Contact2345.Select ID from one of your group membersThere are 5 marks deduction if you do not set the the project name according to the assigned format.

  1. LoginPage:(2 marks) User can access the contact list in Figure 1 after their login.

    • You must create a simple login page (Figure 2) that can use to check username and password whether they can be matched with one of usernames and passwords in the database.
    • Set one of your accounts in database must be:
      • Username: bob
      • Password: 1234
  2. New Contact Page:(2 marks) When user clicks “+ Add” button (Orange button), it will go to “New Contact Page” as shown below.When“Save” button is clicked, the information in this form will be saved to database via “add” API.

  3. Edit Contact Page:(3 marks)When the user clicks at “Edit” button (Blue button), it will go to “Edit Contact” page. After the information has been edited and save button is clicked, the information will be saved to database.

  4. Delete:(2mark)When user clicks at “Delete” button (Red button), that contact will be removed from database and also removed from Contact List page

  5. Search:(3marks) User can search a contact according to the FirstName or LastName.

  6. NODE API: (7marks)This web application must integrate with the REST API as shown below. Your NodeJS’s filename to run all API must be “server.js”

Example of CRUD for REST API

# method url Response Message
1 POST http://localhost:5000/contacts/ Add new contact => that contact
2 GET http://localhost:5000/contacts/ Show All Contact
3 GET http://localhost:5000/contacts/:id Show One Contact
4 POST http://localhost:5000/contacts/:id Edit Contact => that contact
5 DELETE http://localhost:5000/contacts/:id Delete One => Delete message

Contact

{
  "cid" : "<Contact id>",
  "firstname" : "<Contact firstname>",
  "lastname" : "<Contactlastname>",
  "email" : "<Contactemail>",
  "mobile" : "<Contactmobile number>",
  "facebook" : "<Contact facebook>",
  "imageUrl" : "<Contact imake>"
}

Delete message

{ 
  "message":"This contact has been deleted",
  "firstname":<Contact firstname>
}

Submission(0 marks if you missed one of these stepsbelow)


Assignment 1

Due April 18, 2022 9:00 AM - Closes April 18, 2022 11:59 PM

Instructions

Points

20 points possible


About

egco427 MEVN asg by nicharee and natthawee

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published