This starter was created as a starting template for a Vue.js 2 frontend application built with TypeScript.
- TypeScript - For type safety and other awesome features not native to vanilla JavaScript.
- SASS - CSS extension language for CSS nesting, mixins, variables, modules and inheritance.
- BEM Methodology - Methodology for naming and organizing CSS selectors and HTML elements.
- Vuex - Vue.js library for state management.
- Unit tests with mocha, chai & sinon
- Continuous integration with TravisCI
- Coverage reports with Istanbul & Coveralls
- Add SCSS files with 7-1 architecture pattern
- Add basic layout for the app(header,footer,wrapper)
- Add components for auth pages(login,register,forgot/reset password)
- Add store for state management and cookies
- Add basic configuration for PWA
- Containerized setup with docker-compose
To begin using the starter project, first copy the example variables into a .env.[mode].local file with command: cp .env.example .env.[mode].local. The modes available are documented here. You will then need to modify the following environment variables in the .env.[mode].local file for your frontend to run:
-
VUE_APP_NAME- Name of the application -
VUE_APP_URI- URI for the application -
VUE_APP_API_URI- URI for the REST API
Clone the project
git clone https://github.com/peterkitonga/vuetwstarterGo to the project directory
cd vuetwstarterInstall dependencies
npm installStart the server
npm run serveInstall dependencies first
npm installTo deploy this project run
npm run buildTests are written in Mocha, Chai under the tests directory and uses istanbul for coverage reports. To run tests, run the following command
npm run test:unitTo run and view coverage reports for the tests, you will need to run two scripts in sequential order
npm run test:coverage ; npm run test:viewLinting is configured with eslint and prettier. You are free to configure it to your liking using the configuration file .eslintrc.js.
To check for and fix linting errors, run
npm run lintSee configuration reference here for further customization