Docsity

Cloud Computing Challenges and Solutions: A Comprehensive Guide - Prof. Pham, Assignments of Computer Science

Toggle sidebar
bg1
ASSIGNMENT 2 CLOUD COMPUTING
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Unit 16: Cloud Computing
Submission date
Date Received 1st
submission
Re-submission Date
Date Received 2nd
submission
Student Name
Phan Minh Tiến
Student ID
GCD201914
Class
GCD1001
Assessor name
Trần Trọng Minh
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
Tiến
Grading grid
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
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download Cloud Computing Challenges and Solutions: A Comprehensive Guide - Prof. Pham and more Assignments Computer Science in PDF only on Docsity!

ASSIGNMENT 2 CLOUD COMPUTING

Qualification BTEC Level 5 HND Diploma in Computing

Unit number and title Unit 16 : Cloud Computing

Submission date Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name Phan Minh Tiến Student ID GCD

Class GCD1001^ Assessor name Trần^ Trọng Minh

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 Tiến

Grading grid

P5 P6 P7 P8 M3 M4 D2 D

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date:

Internal Verifier’s Comments:

Signature & Date:

  • FRAMEWORK (P5) I. CONFIGURE A CLOUD COMPUTING PLATFORM WITH A CLOUD SERVICE PROVIDER’S
    • 1 Tools I use for create project
      • 1.1 Integrated Development Environment (IDE)
      • 1.2 Framework
      • 1.3 Database
      1. Deploy Website on Heroku
  • II. IMPLEMENT A CLOUD PLATFORM WITH OPEN-SOURCE TOOLS (P6)
      1. Code Implementation............................................................................................................................
      • 1.1 Database connection
      • 1.2 Authentication
      • 1.3 All Function of Project
      1. Screen shots for the project...................................................................................................................
      • 2.1 User Role.........................................................................................................................................
      • 2.2 Director role:
  • PLATFORM AND DISCUSSS APPROPRIATE SOLUTIONS TO THESE PROBLEM (P7) III. ANALYZE THE MOST COMMON PROBLEMS WHICH ARISE IN A CLOUD COMPUTING
      1. Optimizing Cloud Expenses
      1. Migrating Existing Applications onto the Cloud
      1. Cost Calculations within Limits
      1. Proprietary Lock – in
      1. Consistent Performance
      1. Data Security Violation
  • IV. ASSESS THE MOST COMMON SECURITY ISSUES IN CLOUD ENVIRONMENTS (P8)
      1. Misconfiguration...................................................................................................................................
      1. Unauthorized Access
      1. Insecure Interfaces/APIs
      1. Hijacking of Accounts
      1. External Sharing of Data
      1. Lack of Visibility
  • References
  • Figure 1: Visual Studio Code........................................................................................................................................ Table of Figure
  • Figure 2: ExpressJS Framework
  • Figure 3: PostgreSQL on Heroku
  • Figure 4: Repository for Project
  • Figure 5: The command of Git I use to upload code
  • Figure 6: Set up Database on Heroku Postgres
  • Figure 7: Database credential on Heruku......................................................................................................................
  • Figure 8: pgAdmin
  • Figure 9: HEROKU SERVER
  • Figure 10: Register for local Server Postgresql
  • Figure 11: Use Specific database of Heroku Postgres
  • Figure 12: Table for ATN database
  • Figure 13: Data of Users Table
  • Figure 14: Data of shops table
  • Figure 15: Data of products table................................................................................................................................
  • Figure 16: Create Dataclip
  • Figure 17: Connect repository
  • Figure 18: Deploy app
  • Figure 19: Test View APP
  • Figure 20: MVC model
  • Figure 21: models
  • Figure 22: views..........................................................................................................................................................
  • Figure 23: routes
  • Figure 24: Connect Database Server...........................................................................................................................
  • Figure 25: Authen function
  • Figure 26: Table_display.js.........................................................................................................................................
  • Figure 27: Home Page
  • Figure 28: Login Page.................................................................................................................................................
  • Figure 29: User Page...................................................................................................................................................
  • Figure 30: Admin Page
  • Figure 31: Shop_A
  • Figure 32: Shop_B
  • Figure 33: Shop_C

I. CONFIGURE A CLOUD COMPUTING PLATFORM

WITH A CLOUD SERVICE PROVIDER’S

FRAMEWORK (P5)

1. Tools I use for create project

1.1 Integrated Development Environment (IDE)

 Visual Studio Code is a free editor that assists programmers in writing code, debugging it, and correcting it via the intelli-sense approach. In layman's words, it allows users to create code more easily. Many people claim it's half an IDE and half an editor, but that's up to the developers to decide.

Figure 1: Visual Studio Code  I will use Visual Studio Code because:  Cross – Platform Support: Traditionally, editors supported either Windows, Linux, or Mac systems. However, Visual Studio Code is cross-platform. As a result, it may be used on all three platforms. Also, the code runs on all three platforms; otherwise, the open-source and proprietary software codes were distinct.  Support for multiple programming language: Several programming languages are supported. Previously, programmers needed Web-Support: a separate editor for each language, but it now has built-in multi language support. This also implies that it can readily discover any flaws or cross-language references.

even write code in another programming language (such as Python) without having to recompile the database. And, of course, PostgreSQL is free on Heroku.

Figure 3: PostgreSQL on Heroku

2. Deploy Website on Heroku

Step 1: Set up repository on GitHub to prepare deploy for my app.

Figure 4: Repository for Project Step 2: I coded project in Visual Studio Code then push all code to that repository when I just created

Figure 5: The command of Git I use to upload code Step 3: Create new application on Heroku  The first thing you must do which click on the button new, next click-on create new app.

 Then, I get a name for my app is “app-atnshop1”

Name of my App

Step 4 : Set up PostgreSQL on Heroku

 After I download and configuration PostgreSQL success, It open PgAdmin 4 to create database in local server.

Figure 8: pgAdmin

 Then I create Server Group have name is “HEROKU” and Register new PostgreSql to manage database of My app on Heroku

Figure 9: HEROKU SERVER

 Next, I config the local server postgres for connection with heroku postgres.

Figure 11: Use Specific database of Heroku Postgres

Step 6: In local Server, I create three table includes: user, shop, and product to represent requirement of ATN Company.

Figure 12: Table for ATN database

 Then, I insert some data into all table I created.

Figure 13: Data of Users Table

Figure 14: Data of shops table

Figure 15: Data of products table

 Then, I click-on button view to display ATN shop app in heroku.

 The APP will display as images below:

Figure 19: Test View APP

II. IMPLEMENT A CLOUD PLATFORM WITH OPEN-

SOURCE TOOLS (P6)

1. Code Implementation

 This project following MVC model so that I can handle source code easier.

Figure 20: MVC model

Model(M): This part is responsible for all functions of the project.

Figure 21: models

View(V): This part is used for display view for the project

Figure 22: views

Controller (C): This part has folder “routes”, which implemented all functions of the project

Figure 25: Authen function

In file “table_display.js”, in responsible of showing product information based on which user logs in, if user is “director” , they could see all products of all shops, if, user is “shop”, they just can see product of that shop. Moreover, I also make a form Table to display product and add, update, delete button. Espcially, I also add some css code to make color and align for table. In this file, I use two for loop to display all data from the database.