This project is simple app showing how to use Vue. Few templates, fetching data from local file and presenting it through lists and single views.
Please follow instructions to setup your environment, install app locally, develop it locally, test, build and finally deploy it.
You need to have installed node.js
and yarn
on your machine to make this app work.
We recommend using LTS
version of node.
macOS:
Install node.js:
brew install node@10
Install yarn:
brew install yarn
Windows:
Install node.js on Windows:
Instal Chocolatey - this is package managing tool, it will help you with installing node.js
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object wet.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
Install node.js:
choco install nodejs-lts
Install yarn:
choco install yarn
Check versions of installed node.js and yarn
node -v && yarn -v
Two step guide which show you how to install and run app.
Install all dependencies for this project
yarn install
Start development version of app
yarn run serve
Application is served through following links:
-
Local machine:
http://localhost:8080/
-
Local network:
http://192.168.1.178:8080/
Tests and lints will be run in pipeline before deploying. Please run them, before deploying to avoid failure in pipeline.
These tests run through all components in app:
yarn run test
These tests will lint (show) any errors in your code:
yarn run lint
When you build your app, you will be shown graph analysis with diagram presenting all dependencies and their sizes. This is useful in investigating performance and size of app.
yarn run build
- Vuejs - Library for interactive web interfaces.
- Vue Router - Library for managing routes in vuejs applications.
- Superagent - Light-weight progressive ajax API for browsers.
- Yarn - Dependency Management.
- Jest - Testing framework.
- Michal Zagrodzki - Lead developer