This is a basic VueJs 2 and Vue Router skeleton written on JavaScript using promise via axio. Great for building a starter web app.
This project is created to help other developers create a basic VueJS app in an easy way. This basic example shows how powerful and simple JavaScript and VueJS can be.
- Multiple environment ready (development, production).
- Vue router
- i18n ready.
- Ready to add to home screen in iOS and Chrome, checks if there´s an app update every 2 hours and reloads page (When a web app is added as stand alone there´s no reload button in the browser so new .js files from a new build never get loaded)
- Landing page.
- Protected home page.
- Login.
- Register.
- Forgot password.
- Testing with Cypress and mocha/chai.
- NPM script for keeping good source code formatting using prettier and ESLint.
- Use of ESLint for good coding practices.
- Use of prettier for beautiful format.
- Ability to refresh token
- Clone the project from github. Change "myproject" to your project name.
git clone https://github.com/maheshwar-tigadi/vue-2-basic-boilerplate.git ./myproject
- Download repository
- Uncompress to your desired directory
cd myproject
npm install
npm update
This project uses Vue Router HTML5 History Mode, this means when you are in development mode you can hit Cmd+R (mac) or F5 (Windows) to reload the page and it will work, but when the project is built you will have problems, so will need to do a small change in your web server to make that work. Please read the official Vue Router documentation here: https://router.vuejs.org/guide/essentials/history-mode.html#example-server-configurations
npm run serve
npm run build
npm run test
npm run lint
npm run test:e2e
npm run test:unit
Feel free to report any bugs or improvements. Pull requests are always welcome.
This project is open-sourced software licensed under the MIT License. See the LICENSE file for more information.