Introduction

For our topic, we chose to build our web application with Vue.js. Vue.js was initially released in February 2018 by Evan You. Before creating Vue.js, Evan You worked for Google and he was using AngularJS in his projects. You created Vue.js with the idea of “things that he liked about AngularJS and trying to build something that was lightweight” and after many past versions of his source code updated, Vue.js came to be. The importance and relevance of Vue.js to this class is that Vue.js is a JavaScript framework used for building user interfaces and single page applications. Vue.js is different from other frameworks because Vue.js uses a progressive framework which means that no matter how simple you create a project in Vue.js, it can grow and adapt it’s complexity.

Set-Up Section

One of the software that will you will need to download is Visual Studio 2019 and make sure that you download node.js framework.

You will have to go online and download another Nodejs, this version is important because you will not be able to run npm command without this version of Nodejs. After downloading it, make sure that you install it in your computer.

Open up Visual Studio 2019 and create a new web application, once you created a web application, go to the terminal or the command prompt and type in "npm install @vue/cli". This will allow you to run Vue projects.

To create a Vue Application, you will need to type "vue create 'folder name'"

After creating a folder, you can pick which version of Vue you would like to work with.

Open Visual Studio Code again, and this time click on open a local folder and find the vue application folder than you made.

To run your Vue application, first you will need to build it and the way you build your project is by typing in "npm run build" in the terminal

After building your Vue project, the final step is running it. The way that you would run your Vue project is by typing in "npm run serve" in the terminal

Intermediate Stage

I made an array called destinations which contained an id, name, continent, description, cost and an image. I needed this array because I wanted to print out these objects in the array on my page using Vue.

I also made a hotel array because I wanted a div to print out a hotel object with an id, name, description, cost and image.

I finally made a diet array because I wanted this travel applications to consist of users booking a destination, reserving a hotel, and ordering a meal prep.

This div prints out all of the objects in the destinations array by using the Vue v-for loop. After looping through all of the object in the destination array. I chose to print out the destination image, name, continent, description, and cost. This is almost the exact same code for the hotel div and the diet div.

When making the travel application, I wanted the user to have a separate page for the whole "cart". So Vue allows you to switch between different pages and this div shows that if the page is on reserve then two button will be display while the item in list will be printed out on the reserve page.

This is what the reserve page looks like when the user inputs a destination, hotel, and meal.

This code function the same as the reserve page, but this page is the main page which prints out all of the destinations, hotel, and diet. It also prints out the same buttons and a dropdown list to search for what continent the user wants to travel to.

This is what the travel aka "Main Page" looks like. This page has everything that the users can pick.

Final Summary

I chose to do Vue because that was one of the topics on the Tutorial Project. I also chose to do a travel application which lets user chose from a destination, hotel, and a meal prep. The user will only be able to chose one destination, one hotel, and one meal prep. They will also be able to search which continent they would like to travel too.

Source

If you want to know more and review my sources, here are some links.

1.Introduction - vue.js. - Vue.js. (n.d.). Retrieved April 5, 2022, from https://v2.vuejs.org/v2/guide/index.html?redirect=true

2.What is vue.js? What is Vue.js. (n.d.). Retrieved April 5, 2022, from https://www.w3schools.com/whatis/whatis_vue.asp

3.Ajeed, R. (2020, July 11). Introduction to vue.js. Medium. Retrieved April 5, 2022, from https://medium.com/@rubeena.ajeed/introduction-to-vue-js-a16614f20f77

Links

Visual Studio 2019
NodeJS
Learn More About Vue