Assignment 2 môn cloud computing 1644, Assignments of Data Warehousing

Assignment 2 môn cloud computing 1644

Typology: Assignments

2021/2022

Uploaded on 11/20/2022

huynh-van-ngoan
huynh-van-ngoan 🇺🇸

4.4

(8)

26 documents

1 / 25

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ASSIGNMENT 2 FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Unit 16: Cloud Computing
Submission date
October 28,2022
Date Received 1st
submission
Re-submission Date
Date Received 2nd
submission
Student Name
Huynh Van Ngoan
Student ID
GCC200153
Class
GCC0904
Assessor name
Thai Minh Tuan
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
Ngoan
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

Partial preview of the text

Download Assignment 2 môn cloud computing 1644 and more Assignments Data Warehousing in PDF only on Docsity!

ASSIGNMENT 2 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing

Unit number and title Unit 16 : Cloud Computing

Submission date October 28,2022 Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name Huynh Van Ngoan Student ID GCC 200153

Class GCC 0904 Assessor name Thai Minh Tuan

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 Ngoan

Grading grid

P5 P6 P7 P8 M3 M4 D2 D

Summative Feedback:Resubmission Feedback:

Grade: Assessor Signature: Date:

Internal Verifier’s Comments:

Signature & Date:

Assignment Brief and Guidance:

Task 1

Base on the scenario and architecture design in the first assignment provide the

implementation. Because of the time constraint of the assignment, the implementation just

provides some demo functions of the scenario. The implementation includes two parts:

  • A step by step instruction

o which shows which functions are implemented

o How to config, deploy and test the services (Web application, Database Server,

Source code management, server logs..) using service provider’s frameworks

and open source tools.

o Images for the built functions

  • A brief discussion about difficulties which one can face during the development process(optional)
  • The source code for the built application

Task 2

The table of contents in your security manual (which should be 500–700 words) should be

as follows:

1. Analysis of the most common problems and security issues of a cloud computing

platform.

2. Discussion on how to overcome these issues.

3. Summary.

Learning Outcomes and Assessment Criteria Pass Merit Distinction LO3 Develop Cloud Computing solutions using service provider’s frameworks and open source tools D2 Critically discuss how one can overcome these issues and constraints. P5 Configure a Cloud Computing platform with a cloud service provider’s framework. P6 Implement a cloud platform using open source tools. M3 Discuss the issues and constraints one can face during the development process. LO4 Analyse the technical challenges for cloud applications and assess their risks P7 Analyse the most common problems which arise in a Cloud Computing platform and discuss appropriate solutions to these problems. P8 Assess the most common security issues in cloud environments. M4 Discuss how to overcome these security issues when building a secure cloud platform. D3 Critically discuss how an organisation should protect their data when they migrate to a cloud solution.

  • 1 Introduction
  • 2 Design
    • 2.1 Overview function
      • 2.1.1 Solution
      • 2.1.2 Use-case diagram
    • 2.2 Website Screen Shots
      • 2.2.1 Index......................................................................................................................................................
      • 2.2.2 List Product/Category/ Supplier
      • 2.2.3 Add Product/Category/Supplier
      • 2.2.4 Update Product/Category/Supplier
      • 2.2.5 Delete Product/Category/Supplier
    • 2.3 Code implement and deploy process
      • 2.3.1 Tools and framework
      • 2.3.2 Deploy
      • 2.3.3 Config git and upload file to github
      • 2.3.4 Deploy code on Heroku server
    • 2.4 Code implement
    • 2.5 Source code and website
    • 2.6 Difficulties which one can face during the development process.
      • 2.6.1 Programming
  • 3 Security
    • 3.1 Some issue of Cloud computing platform...................................................................................................
      • 3.1.1 Public cloud
      • 3.1.2 Private cloud
      • 3.1.3 Hybrid Cloud
    • 3.2 Security issues and solution in cloud computing enviroment.
      • 3.2.1 Security issues
      • 3.2.2 Solution
  • 4 SUMMARY
  • 5 References
  • Figure 1: Use-case diagram. Table of Figures
  • Figure 2: Homepage.
  • Figure 3: Product list.
  • Figure 4: Add product.
  • Figure 5:Update product.............................................................................................................................................
  • Figure 6: Delete product.
  • Figure 7: Visual Studio Code.
  • Figure 8: Github.
  • Figure 9: Mongodb......................................................................................................................................................
  • Figure 10: Heroku.
  • Figure 11: Download Nodejs.
  • Figure 12: Install express.
  • Figure 13: create name of the project.
  • Figure 14: Create New Cluster in MongoDB Atlas.
  • Figure 15: Authenticate the connection with the account
  • Figure 16: Add IP Access List
  • Figure 17: Create database.
  • Figure 18: Get Connection String.
  • Figure 19: Create new repository on github.
  • Figure 20: Sync folder with repository and push code.
  • Figure 21: Git repository after push.
  • Figure 22: package-Json.
  • Figure 23: Setup app.listen and PORT.
  • Figure 24:Create Herroku Web Application................................................................................................................
  • Figure 25: Add BuildPack nodejs
  • Figure 26: Documentation for using Heroku
  • Figure 27: Heroku Web In Internet
  • Figure 28: Library of Nodejs.

ASSIGNTMENT 2

1 Introduction

Some fundamental cloud computing principles were covered in the preceding study. Using the solution

they offered in the prior report as a foundation, we will build a cloud web application in this study. Utilizing

mongodb as the program's database, the web application is written in Node.js. Heroku is going to be used

to launch this project online.

2 Design

2.1 Overview function

2.1.1 Solution

The cloud is our choice, after clearly analyzing the needs of the business as well as the benefits that the

cloud has brought. In this report the implementation will be detailed.

2.1.2 Use-case diagram

Figure 1 : Use-case diagram.

Web Application has the several function that are:

  • Add/update/delete/view/search category.
  • Add/update/delete/view/search product.
  • Add/update/delete/view/search supplier.

2.2.3 Add Product/Category/Supplier

Figure 4 : Add product.

When we want to add more products, we just need to click on the add new product button in the product

list page. After pressing the add button, the add product page will be displayed, then we will fill in all the

information and upload the image file, then press the add new button, the product will be added to the

table and database. The same is true in the category and supplier sections.

2.2.4 Update Product/Category/Supplier

Figure 5 :Update product.

By selecting the pen icon from the product list, you will be sent to this page. When a product is clicked,

this interface will reveal its details, which we can then edit to meet our needs. Both suppliers and catalogs

have access to this function.

2.2.5 Delete Product/Category/Supplier

Figure 6 : Delete product.

This message will appear when clicking on the trash can icon in the product list. If OK is selected, the

product will be deleted from the system. If you cancel, nothing will be done. This functionality is also

available on both categories and supplier.

2.3 Code implement and deploy process

2.3.1 Tools and framework

2.3.1.1 IDE

I choose visual studio code to code because:

  • It is very light and does not take much space and time to start the software.
  • Supports many different programs and languages with lots of extensions and codebases.
  • Many default keyboard shortcuts are available for ease of use and work made easier.
  • Visual Studio Code supports terminal commands for Heroku CLI and Git CLI. Figure 7 : Visual Studio Code.

Figure 9 : Mongodb.

2.3.1.5 Cloud computing module

The project will be launched online using Heroku at this last stage. Our PAAS applications may be deployed

with the aid of the cloud server Heroku. It is appropriate for both small and large businesses and has a

broad scope. A skilled technical crew is on duty around-the-clock at Heroku, and the company is dedicated

to adopting several privacy regulations.

Figure 10 : Heroku.

2.3.2 Deploy

2.3.2.1 Config framework express on the env

Since Express is a framework of nodejs, the first thing that we have to do is download and install nodejs

on our computer.

Figure 11 : Download Nodejs.

Once nodejs is installed, we must establish a project and user terminal so that we can utilize the Node

package management to install express with the command npm install express.

Figure 12 : Install express.

2.3.2.2 Config and connect with mongodb

Making the database and the data connection is the next step. As opposed to installing MongoDB locally,

MongoDB Atlas is more appropriate and practical for the project, thus we'll utilize it. Because of this, we

must set up a mongodb atlas account.

Step 1: Enter the name of the project.

Figure 13 : create name of the project.

Figure 16 : Add IP Access List

Step 5: Back to cluster tab and click to the collection. Click to the create database.

Figure 17 : Create database.

Step 6: Choose the created cluster and click connect to get the connection string. You need to replace the

password with you current password.

Figure 18 : Get Connection String.

2.3.3 Config git and upload file to github

I need utilize Github to maintain the source code while developing a web application, then push it to

Heroku for testing. I'll make a single repository to be managed for every project.

Figure 19 : Create new repository on github.

I'll use a command to utilize the newly formed repository to sync the current project with git.

Figure 23 : Setup app.listen and PORT.

The following step will include creating a new account on Heroku and selecting the "Create New App"

option on the Heroku home page.

Figure 24 :Create Herroku Web Application

since Node.js was used to create my web application. Therefore, we must add the Node.js buildpack to

Heroku for our project.

Figure 25 : Add BuildPack nodejs

When it comes to deploying our app in Heroku, we have 2 primary options.

  • By selecting connect to github, you may link your repository.
  • Utilize Heroku CLI (you need to install it before). Additionally, Heroku offers some instructions on

how to deploy your project using the Heroku CLI.

Figure 26 : Documentation for using Heroku

When the push or connection to your project is successful. You may view your project by clicking "open

app."

Figure 27 : Heroku Web In Internet