






















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!























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
Grade: Assessor Signature: Date: Internal Verifier’s Comments: Signature & Date:
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.
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.
Figure 1 - Use case Diagram The user can perform several tasks such as:
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:
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
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.
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