- Clone project to local machine
- Go to root of project directory
- run
npm install
in your terminal - run
npm run install-client
in your terminal - run
npm run install-server
in your terminal
- Follow instructions to set up project on local machine from above (section a)
- run
npm start
- Frontend application should be running on http://localhost:8080
- API should be running on http://localhost:4000
- Follow instructions to set up project on local machine (section a)
- run
npm run test
on root of project directory
- Mocha testing should start running
Deployed API links:
- Main page: https://us-central1-cs3219-otot-taskb.cloudfunctions.net/cs3219-otot-function
- Subpage: https://us-central1-cs3219-otot-taskb.cloudfunctions.net/cs3219-otot-function/api
- Contacts API page: https://us-central1-cs3219-otot-taskb.cloudfunctions.net/cs3219-otot-function/api/contacts
Refer to master
branch of the project to view Travis deployment status
Additional Requirements:
Instructions:
- Refer to project set up on local machine (section a)
- Refer to instructions to run project locally (section b)
- Enter url as http://localhost:4000/api/contacts in Postman
GET
requestGet all contacts
url: http://localhost:4000/api/contactsGet specific contact
url: http://localhost:4000/api/contacts/{contact_id}
contact_id: unique identifier of contact object
POST
request
url: http://localhost:4000/api/contactsSubmit request with the following fields
name
: String (required)
gender
: String - Female / Male (required)
phone
: 8 digits long (required)
PUT
request
url: http://localhost:4000/api/contacts/{contact_id}
contact_id: unique identifier of contact objectSubmit request with the at least one of the fields
name
: String
gender
: String - Female / Male
phone
: 8 digits long
DELETE
request
url: http://localhost:4000/api/contacts/{contact_id}
contact_id: unique identifier of contact object
Additional requirements to make REST API calls:
Instructions:
- Refer to section d to access API on google cloud function
- Refer to task B1 guide above to make API calls but replacing the url as https://us-central1-cs3219-otot-taskb.cloudfunctions.net/cs3219-otot-function/api/contacts in Postman
Instructions:
- Refer to section c to run test locally
Refer to localhost
branch of the project to view Travis status on automate testing
Instructions:
- Refer to section b to setup and run frontend application
- Enter http://localhost:8080 on your browser
UI components:
- Navigate pages with the navigation bar
- View list of contacts on http://localhost:8080/api/contacts
- Form to add/edit/delete contact on http://localhost:8080/api/contacts
- Vue (Frontend)
- Mongodb (Database)
- NodeJS & ExpressJS (Backend)
- Google Cloud Function (Serverless Service)
- MochaJS (Test)
- Travis (CI/CD)