Why Choose Us?
0% AI Guarantee
Human-written only.
24/7 Support
Anytime, anywhere.
Plagiarism Free
100% Original.
Expert Tutors
Masters & PhDs.
100% Confidential
Your privacy matters.
On-Time Delivery
Never miss a deadline.
Overview In this project, you will implement the same two pages you implemented in the previous project (home page and category page)
Overview
In this project, you will implement the same two pages you implemented in the previous project (home page and category page). But this time you will be using the Vue framework. Vue is a JavaScript framework that makes use of multiple components to implement a Single-Page Application (SPA). A single-page application just has one HTML page (index.html). It uses JavaScript to modify that page so that it can look like any traditional web page in your application. Therefore, you will not technically be implementing two different pages. Instead you will be implementing two views -- a home-page view and a category-page view. The results will be almost exactly the same, but there will be some subtle differences. For example, instead of this in the address bar:
|
http://localhost:8080/DrKBookstoreHtml/category?name=mystery |
We would see something like this:
|
http://localhost:8080/DrKBookstoreVue/category/mystery |
But the web page would look the same.
Setting up the Project Submit Assignment
Use the Client-Server slides (https://drive.google.com/file/d/1-qJkFZnUoThWPdhZYSdkuG7EpySK79K/view?usp=sharing) to setup your Project 3.
Regarding the Vue setup, please choose the following (the same information is in the slides):
Unselect Babel package (it is selected by default)
Select the Vue router package (it is not selected by default)
Select ESLint package
Choose Vue 2.x (we are *not* going to use Vue 3 in this course)
Choose ESLint + Prettier
Choose to Lint on save
Place config in a dedicated config file
Once you've done all this, Vue-CLI will run as usual and create your project structure. After it does, make sure it runs (using npm run serve). Stop the server (press Control-C in the terminal), and then replace the entire "src" folder (directly under "client") with the "src" folder that I give you in the resources.
Finally, inside the "client" folder, create a JS file named "vue.config.js", and put the following inside:
|
module |
|
. |
|
exports |
|
= |
|
|
|
{ |
|
|
|
|
|
publicPath |
|
: |
|
|
|
"/[Name]BookstoreVue/" |
|
|
|
} |
|
; |
This will ensure that [Name]BookstoreVue is included in your URL paths.
Take some time to explore the code.
Implement your Page Views using Vue
Now implement your page views. Your home and category pages in this project should look exactly like the home and category pages in the previous project (where you implemented them using HTML and CSS). They should behave the same also.
Submit your Project
To submit your project, you will have to package it for distribution and upload it to the server.
Note: Make sure you have a vue.config.js file in your client folder. It's contents should be
|
module.exports = { |
|
|
|
publicPath: "/[Name]BookstoreVue/", |
|
|
|
} |
|
; |
- Clean up: Delete your "dist" folder from your client module. Delete everything except the WEB-INF directory from your "webapp" folder in your server module.
- Run "npm run build" to create a dist folder in your client module
- Move all files from the dist folder to the "webapp" folder in your server module
- Use a Tomcat run configuration to see if everything works
This is an important step. You should see your Vue project running in the Tomcat server now. It is running on your local machine on port 8080.
- Under the build/libs directory in your server module, you should see a server.war file
- Move the server.war file to your desktop and rename it [Name]BookstoreVue.war
I go through this process in the latest Q&A.
Expert Solution
Please download the asnwer file using this link
2 pages with design plus routes and route identifier builded as described in word document. Run yarn install for packages and build for production
https://drive.google.com/file/d/1xKlh3hhx9PCfAPtTUdaAt2W-cew_6ZuF/view?usp=sharing
Archived Solution
You have full access to this solution. To save a copy with all formatting and attachments, use the button below.
For ready-to-submit work, please order a fresh solution below.





