Учебный проект по созданию приложения на vue + vuetify https://medium.com/javascript-in-plain-english/implement-movie-app-with-vue-vuetify-axios-open-movie-database-api-d12290318cf9
-
Creating API vue create movie-app Please pick a preset: default Pick the package manager ....: NPM
-
Add vuetify vue add vuetify Choose a preset: Default
-
Start server npm run serve
-
Install vue router npm install vue-router
-
Creating and installation router create file src/router/index.js
-
Link the router to the app import router from ‘./router’ into src/main.js
-
Install Axios npm install axios --save
-
Creating and mounting latestMovie component create src/components/LatestMovie.vue import it into file src/router/index.js import LatestMovie from '@/components/LatestMovie' add the link to LatestMovie component if index.js
-
Environment variable installation create file .env.development.local creating variables OMDb_API_KEY, OMDb_API_I !!!Mark variables as VUE_APP_(SOME NAME) - without VUE_APP -it`s not working use variables in the code like process.env.VUE_APP_OMDb_API_KEY
-
Extract axios default URL in main.js import axios from 'axios' axios.defaults.baseURL = 'http://www.omdbapi.com/?apikey=xxxxxx&page=1&type=movie&Content-Type=application/json'
-
Make Movie.vue for single movie component
TODO:
- Создать header component
- Настроить поиск
- Выделить Movie component
npm install
npm run serve
npm run build
npm run lint