Docsity

Heroku & Cloud Security: Web App Registration, Configuration & Deployment, Schemes and Mind Maps of Computer Networks

Toggle sidebar
bg1
ASSIGNMENT 2 FRONT SHEET
Qualification BTEC Level 5 HND Diploma in Computing
Unit number and title Unit 16: Cloud Computing
Submission date 15 July, 2022 Date Received 1st submission
Re-submission Date Date Received 2nd submission
Student Name Hoang Minh Tan Student ID GCC18172
Class GCC0901 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 TAN
Grading grid
P5 P6 P7 P8 M3 M4 D2 D3
1
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

Partial preview of the text

Download Heroku & Cloud Security: Web App Registration, Configuration & Deployment and more Schemes and Mind Maps Computer Networks 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 15 July, 2022 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Hoang Minh Tan Student ID GCC Class GCC0901 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 TAN Grading grid P5 P6 P7 P8 M3 M4 D2 D

Summative Feedback:Resubmission Feedback: Internal Verifier’s Comments: Signature & Date:

Unit Learning Outcomes: LO3 Develop Cloud Computing solutions using service provider’s frameworks and open source tools. LO4 Analyse the technical challenges for cloud applications and assess their risks 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.

  • I. The configuration Cloud Computing platform with a cloud service provider’s framework..........................
      1. Heroku registration and configuration............................................................................................................
      1. GitHub repository configuration....................................................................................................................
      1. Heroku cloud application registration for ATN Store....................................................................................
      1. MongoDB Atlas database configuration.......................................................................................................
  • II. The implementation cloud platform using the open-source.....................................................................
    1. Back-end development......................................................................................................................................
      1. Front-end development.................................................................................................................................
      1. Web application deploy on Heroku...............................................................................................................
  • solutions to the problems............................................................................................................................... III. The most common problems which arise in a Cloud Computing platform and discuss appropriate
  • IV. The most common security issues in cloud environments.....................................................................
  • References......................................................................................................................................................
  • Figure 1: Login to Heroku........................................................................................................................................... List of table
  • Figure 2: The dashboard of Heroku............................................................................................................................
  • Figure 3: Download Git...............................................................................................................................................
  • Figure 4: Git setup....................................................................................................................................................
  • Figure 5: Setup Heroku.............................................................................................................................................
  • Figure 6: Heroku CLI.................................................................................................................................................
  • Figure 7: Heroku login..............................................................................................................................................
  • Figure 8: Heroku require login on a browser...........................................................................................................
  • Figure 9: Heroku login successful.............................................................................................................................
  • Figure 10: Create a new repository on GitHub........................................................................................................
  • Figure 11: Create a new app on Heroku...................................................................................................................
  • Figure 12: Heroku app manager...............................................................................................................................
  • Figure 13: Heroku connect to GitHub......................................................................................................................
  • Figure 14: Create a Project with atlas......................................................................................................................
  • Figure 15: Dashboard MongoDB Atlas.....................................................................................................................
  • Figure 16: Connect to Cluster...................................................................................................................................
  • Figure 17: MongoDB connection method................................................................................................................
  • Figure 18: The constructor of the Toys Store Project.............................................................................................
  • Figure 19: Controller folder......................................................................................................................................
  • Figure 20: Models folder..........................................................................................................................................
  • Figure 21: Public folder.............................................................................................................................................
  • Figure 22: View folder..............................................................................................................................................
  • Figure 23: Code of Server.js file................................................................................................................................
  • Figure 24: Code of Package.json file.........................................................................................................................
  • Figure 25: Database diagram....................................................................................................................................
  • Figure 26: Input (view) data page............................................................................................................................
  • Figure 27: List page...................................................................................................................................................
  • Figure 28: Edit page..................................................................................................................................................
  • Figure 29: The source code is pushed on GitHub.....................................................................................................
  • Figure 30: Connect Heroku with repository of GitHub............................................................................................
  • Figure 31: Heroku build an application with GitHub................................................................................................
  • Figure 32: Website on link https://toy-store-123.herokuapp.com/toy...................................................................
  • Figure 33: Source code on https://github.com/TanHoang34858/ToyStore123......................................................

I. The configuration Cloud Computing platform with a cloud service

provider’s framework

1. Heroku registration and configuration

Platform as a Service (PaaS) supplier for cloud-based development is Heroku. Ruby on Rails, Java, Node.js, Python, Scala, and Clojure programming are all supported by the Heroku platform(TechTarget Contributor, 2012). Heroku's initial support was limited to Ruby on Rails. The business declared in 2010 that it supported one million Ruby developers who directly created and used apps on Amazon Web Services (AWS). Heroku integrates additional cloud services and maintains the development environment current. The business and Facebook worked together to make it possible for developers with Heroku accounts to quickly and easily create and deploy Web apps utilizing a Facebook interface(TechTarget Contributor, 2012). Before starting the project, go to Heroku.com and create an account (or connect to an existing one). The interface seems clear and user-friendly at first glance. Figure 1: Login to Heroku The dashboard of Heroku will be appeared when user login (or sign up and setup) successfully.

Figure 4: Git setup

The Heroku Command Line Interface will be installed at this phase (CLI). The command line interface is used to manage and scale applications, supply add-ons, inspect application logs, and execute apps locally. Figure 5: Setup Heroku

Figure 8: Heroku require login on a browser Figure 9: Heroku login successful

2. GitHub repository configuration

Repositories are comparable to project folders. All of the project's files are kept in the repository, along with each file's revision history. The repository may be used by users to manage and discuss the project's progress.

Users have the option of exclusive ownership of repositories or joint ownership with other members of an organization.

Figure 11: Create a new app on Heroku Figure 12: Heroku app manager

The user will edit the application's source code and publish it using GitHub integration, one of the easiest Heroku app deployment strategies. The source code hosting website GitHub may be configured to automatically submit updates to Heroku. Figure 13: Heroku connect to GitHub The user has now connected the application to Heroku and stored the source code there on a GitHub repository for automated deployment if anything changes in the source code.

4. MongoDB Atlas database configuration

MongoDB is a NoSQL database management system that is open-source and free. A database technology known as NoSQL is utilized in place of conventional relational databases. NoSQL databases can in quite helpful when managing vast quantities of dispersed data. MongoDB is an utility for storing and retrieving data as well as managing document-oriented data (Botelho & Vaughan, 2020). Various forms of data may be stored in MongoDB. It is one of the many non-relational database systems that came under the NoSQL umbrella in the middle of the 2000s. These systems are frequently used in big data applications and other processing tasks needing data that does not fit well in a traditional relational paradigm. Instead of tables and rows like relational databases, collections and documents make up MongoDB's design (Botelho & Vaughan, 2020). The same team that designed MongoDB also developed MongoDB Atlas, a fully managed cloud database. AWS, Azure, and GCP cloud service providers' deployment, monitoring, and recovery challenges are handled by Atlas.

Connect application to the cluster using MongoDB’s native drivers: Figure 16: Connect to Cluster The ATN application is built with Node.js version 12.16, so the selection for connection method:

  • Driver: Node.Js
  • Version: 4.1 or later Figure 17: MongoDB connection method

II. The implementation cloud platform using the open-source

1. Back-end development

Some programming languages that used to create the project:

  • Node.js (Kaneriya, 2020): Based on Chrome's V8 engine, Node.js® is an open-source JavaScript runtime environment. Because it is event-driven and provides non-blocking I/O, it is perfect for creating web programs that are small, effective, and quick. Node.js has emerged as the industry standard in a variety of fields, including IT and healthcare. The simplicity of usage that Node.js offers is hard to ignore. But every technology has both benefits and drawbacks. As a consequence, let's examine the advantages and disadvantages of node.js so you can compare them to your needs and make a wise choice. Advantages: + Real-time applications require high performance. + Scalability is simple for modern applications. + Cost-effective Development with Full stack JS Community Support + Easy to learn and adaptable Aids in the formation of cross-functional teams + Enhances App Response Time and Performance + Reduces Your apps' time-to-market + Flexibility to Meet Specialized Requirements + Quick Caching reduces loading time. + Aids in the development of cross-platform applications
  • ExpressJs: A free and open source Node.js web application framework is called Express.js. It is employed to quickly and easily develop and produce web applications. Apps that may be accessed using a web browser are referred to as web applications. Programmers and developers may quickly construct web apps and APIs since Express.js just needs JavaScript (Besant Technologies, 2022). The fact that Express.js is a Node.js framework suggests that the majority of the code has already been written and is available for usage by programmers. Single-page, multi-page, or hybrid web apps may be built with Express.js. Express.js is a compact framework that helps organize web applications on the server side into a more structured MVC design (Besant Technologies, 2022).