This code base was created to display products in a store from an outside API.
The live site can be viewed here.
- Clone this repo onto your local machine using
git clone git@github.com:itchonib/test-application.git
- Ensure you are in the root folder (test-application) by doing
cd test-application
- Run the command
yarn
to install all dependicies - Run the project with
yarn server
- Any user visiting the page can use the site
- Research project set up best practices and create general responsive design
- Start file set up (organize files) and set up router
- Build out basic FE component skelton + basic styles
- Add functionality to components and add unit test
- Review and refactor and make it better
- Vue 3 was used rather than Vue 2 for the sake of being able to try and update the applciation using the composition API in the future
- SCSS was used to better organize styles and the ability nest with BEM naming conventions
- Adding tests did require more work/time, however it will reduce time on future refactors and additional new features
For packages used for testing please see the testing section.
The front end was built with Vue 3 and styled using scss files. The following additional packages were added
sass
was used to allow use of scss files within vuesass-loader
v10 was used, as updated versions were not compatiblevue-router
was used to set up routingaxios
was used to call to the JSON file
This site was delpoyed using vercel.
vue-jest
and@vue/test-utils
were used to created unit tests for specific components. To run unit tests from the root folder pleaseyarn test:unit
- Add cypress tests and continous integration through github actions
- Learn how to use Vuex Store and new Composition API together to update the app
- Add customer loader to use in the application to display while waiting for the promise to resolve