Docsity

Asm_2_Cloud_Computing, Essays (university) of Distributed Programming and Computing

Toggle sidebar
bg1
ASSIGNMENT 2
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Unit 16: Cloud Computing
Submission date
02nd May 2022
Date Received 1st
submission
02nd May 2022
Re-submission Date
Date Received 2nd
submission
Student Name
Pham Khac Thanh Phong
Student ID
GCH210005
Class
GCH0905
Assessor name
Do Quoc Binh
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
Grading grid
P5
P6
P7
P8
M3
M4
D2
D3
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e

Partial preview of the text

Download Asm_2_Cloud_Computing and more Essays (university) Distributed Programming and Computing in PDF only on Docsity!

ASSIGNMENT 2

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Unit 16 : Cloud Computing Submission date 02 nd^ May 202 2 Date Received 1st submission 02 nd^ May 202 2 Re-submission Date Date Received 2nd submission Student Name Pham Khac Thanh Phong Student ID GCH Class GCH0905 Assessor name Do Quoc Binh Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that making a false declaration is a form of malpractice. Student’s signature Grading grid P5 P6 P7 P8 M3 M4 D2 D

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date: Internal Verifier’s Comments: Signature & Date:

  • I. Introduction
  • II. Design
      1. Overview Function
      • 1.1. Solution
      • 1.2. Use-case diagram
      • 1.3. Website screenshots
      1. Code implementation and deploy process
      • 2.1. Tools and framework
      • 2.2. Deploy
      • 2.3. Code implementation
  • III. Security
      1. Cloud computing platform issues and solutions
      • 1.1. Public Cloud................................................................................................................................
      • 1.2. Private Cloud
      • 1.3. Hybrid Cloud...............................................................................................................................
      1. Security issues and solutions in cloud computing environment
      • 2.1. Unauthorized Access
      • 2.2. Misconfiguration
      • 2.3. Denial of Service Attacks (DOS)
  • IV. Conclusion
  • V. References.............................................................................................................................................
  • Figure 1 - Use case Diagram Table of Figures
  • Figure 2 - Home page
  • Figure 3 - Product page
  • Figure 4 - Product detail page
  • Figure 5 - Insert product page
  • Figure 6 - Edit product page
  • Figure 7 - Deleting a product
  • Figure 8 - Search a product
  • Figure 9 - IDE Visual Studio Code
  • Figure 10 - GitHub
  • Figure 11 - MongoDB....................................................................................................................................
  • Figure 12 - Heroku
  • Figure 13 - Install express
  • Figure 14 - Express install in package.json
  • Figure 15 - Get connection string
  • Figure 16 - Models connection string...........................................................................................................
  • Figure 17 - MongoDB connection.................................................................................................................
  • Figure 18 - Create new repository................................................................................................................
  • Figure 19 - Push code
  • Figure 20 - GitHub repository
  • Figure 21 - Create Heroku web application..................................................................................................
  • Figure 22 - Heroku CLI
  • Figure 23 - MongoDB website
  • Figure 24 - Package.js update.......................................................................................................................
  • Figure 25 - Heroku web on the Internet.......................................................................................................
  • Figure 26 - Cars model..................................................................................................................................
  • Figure 27 - Providers model
  • Figure 28 - Home view..................................................................................................................................
  • Figure 29 - All product view..........................................................................................................................
  • Figure 30 - Edit product view
  • Figure 31 - Add product view
  • Figure 32 - Product details view
  • Figure 33 - All provider view.........................................................................................................................
  • Figure 34 - Edit provider view
  • Figure 35 - Add provider view
  • Figure 36 - Provider details view
  • Figure 37 - Models and packages declaration
  • Figure 38 - Create links
  • Figure 39 - Adding configuration
  • Figure 40 - Editing configuration
  • Figure 41 - Deleting configuration................................................................................................................
  • Figure 42 - Searching configuration
  • Figure 43 - Setup PORT

I. Introduction

The fundamental concepts of cloud computing have been discussed in the previous report. In this report, the implementation of a website application in the cloud will be shown and explained. In the basic, the web application is implemented using Nodejs and MongoDB for the database. The project will be uploaded on the internet with Heroku.

II. Design

1. Overview Function

1.1.Solution

Due to the concept of cloud computing, and the needs of businesses. The website application will clearly show the benefits of cloud computing to the business needs.

1.2.Use-case diagram

Figure 1 - Use case Diagram The user can perform several tasks such as:

  • Add, Edit, Delete, View, and Search Product
  • Add, Edit, Delete, View, and Search Provider

Figure 3 shows the product page of the website, user can delete, edit, or add new product to the website. The function will upload the data to the database which will make change in the MongoDB as well. In addition, user can also search for specific product by typing the name of the product and press the search button. Figure 4 - Product detail page The figure above shows the product detail page of the website. When user wants to see detail information of a product, they can click on the product picture on the product page. The information of the product is displayed including name, price, description and its provider. Figure 5 - Insert product page

Figure 6 - Edit product page The product adding page and editing page are showed in the figure 5 and figure 6, the input boxes allow user to insert the new product information. When user have inputted the information, they must click the insert button to add new product or updating product to the database. Figure 7 - Deleting a product When user wants to delete a product, the website will require user to confirm whether they want to delete the product or not. Figure 8 - Search a product The figure 8 shows the website when user search for a specific product, the page only shows that product.

based on HTTP Method and URL, and dynamically rendering HTML Pages based on supplying inputs to templates are all basic elements of the Express framework (TutorialsPoint, 2022). Source code manager GitHub is a website and cloud-based service that helps developers store and manage their code, as well as track and control changes to their code. To store and manage source code, GitHub is the most suitable website. Figure 10 - GitHub Database server MongoDB is a document database; it provides scalability and flexibility database which appropriate for any web application. The author also used mongo DB for the project for several purposes:

  • It’s providing free online database and users only need to create a mongo DB account, then they can get the connection link
  • MongoDB provides document-oriented storage, which the data is stored as JSON-style documents.
  • The online database provides high security and a NoSQL database.

Figure 11 - MongoDB Cloud computing module In the cloud computing module, the author has used Heroku to deploy the project on the Internet. Heroku is a cloud platform that allows anyone to build, deliver, monitor, and scale application in the PAAS model. Small or big projects can use Heroku to upload on the Internet. The Heroku cloud computing server provides a wide range of security policies that protect the web application from any external threats. Figure 12 - Heroku

Figure 15 - Get connection string Through creating a new database, the author can have a connection link, then connected it with the models of the project. Figure 16 - Models connection string The figure below shows the table models in this project, there are cars and providers.

Figure 17 - MongoDB connection

2.2.3. Config git and upload file to GitHub

To upload code to GitHub and deploy it to Heroku, the author must create a new repository to manage. The figure below shows the required information to create one repository to manage. Figure 18 - Create new repository

Figure 21 - Create Heroku web application After creating a new app in Heroku, the author used Heroku CLI to deploy the project on the website. Heroku provide detail guild for this deployment. Figure 22 - Heroku CLI In this process, the author used Heroku CLI for the deployment of the project. However, in order to successfully upload the source code to Heroku, the previous localhost database needs to be changed. In the figure 16, the author has changed to MongoDB website.

Figure 23 - MongoDB website After connecting with Heroku successfully, the project has been uploaded to the Heroku server as the figure 17 has shown. Figure 24 - Package.js update In order to open apps on Heroku, the highlighted string in figure 24 must include in package.js file.

Figure 27 - Providers model Two figures above show the models of the project, including car and provider. In this model, the author has carefully declared the properties of each model and connected it to MongoDB using the connection link. The model requires a mongoose package for the connection between the server and MongoDB. After the connection has been set up and the properties of each model have been declared, the models are being exported as Cars and Providers.

2.3.2. Views

Figure 28 - Home view Figure 20 shows the view home of the website. This page includes a navigation bar and page content such as a header and product images. The author has also included a CSS style on every page to make the website looks better.

Figure 29 - All product view The figure above shows the view of all product pages. This page displays all products on the website, which contains information such as product name, image, and price. The code also includes a form for searching activity which contain one input card for a user to type the product name, and the other to perform the searching operation. Figure 30 - Edit product view