LINK TO GITHUB REPOSITORY- git@github.com:arkorch/mini_cooper_app.git
Arko Roychowdhury
-clone gih reposity to inside htdocs directory in MAMP -Open webstart in MAMP and open 'my websites' -Select Project -File Opens on Browser- http://localhost:8888/mini_cooper_app//
Time to put it all together! Use everything we’ve covered so far - SASS, Vue, AJAX, databases and Fetch to create a dynamic one-page app based on our class build.
Click on one of the Mini models to show more content / data about that model.
You will be navigating around in your app using Vue lifecycle hooks, components, and AJAX where appropriate.
Create an AJAX request for the mini data housed in your database using the Fetch API or the XHTTP object. Use that application state to build out your application’s view (the mini app splash/home page).
Your XHTTP / Fetch function should handle the stages of an AJAX request gracefully - give some feedback if the request fails (use separate functions / handlers for each stage of an AJAX request).
Most importantly, handle failure first - what happens if you can’t connect, if the resource is missing, etc. This is UX / UI - give the user some visual feedback.
If the AJAX request is successful, build out your view - the content of the page - using the response data (the application state).
Copyright <2021>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.