Front-end app using Vue.js. Created with CodeSandbox
App functionality:
- Routing: Menu: People: onClick it calls for a 'people.vue' component
- then at the lifecycle 'created()', component calls method to get data from API developer.marvel.com
- once loaded, it prints a clickable list of first 10 objets
- on click, it passes selected object to a child 'person-detail.vue'
- onCancel a child does not mutate the object, while onSave object is updated to a parent
- Parent can see updated object in the list.
https://codesandbox.io/s/vue-4-peaks-with-vuex-h6j67
https://h6j67.csb.app/people
npm install or npm i
Create a .env file, from the example existing and filling our variables (.env is not sent to git)
cp .env.example .env
Served at localhost:8080, with hot-reload
vue-cli-service serve
Ready for production with minification
vue-cli-service build
Ready for production and view the bundle analyzer report
npm run build --report
npm run prettier
vue-cli-service lint
Run unit testing :
npm run unit
Run e2e tests
npm run e2e
Run all tests
npm test