Skip to content

A boring boilerplate for Vue 2 applications, by Rogerio Taques.

License

Notifications You must be signed in to change notification settings

rogeriotaques/vue-start-kit

Repository files navigation

Vue Start Kit

A boring boilerplate for Vue 2 applications, by Rogerio Taques.



What is included?

Why shuuld you use this?

You probably should not. Vue is already on v3 and this is based on v2.

But, you may find this useful if, for some reason, you want to quickly bootstrap a Vue 2 application. It comes with all the bare minium to code a SPA.

Here's what you get in this bundle 👇

  • 🚀 Quick to start coding your app
  • 🙌 Very clean and intuitive file structure
  • 🔥 Live programming environment (with Hot Module Replacement)
  • 🎯 Linter and Vue Coding Guidelines up an running
  • 💪 Pre configured unit tests
  • ✅ Well commented and easy to understand source-code
  • 💡 A sample (ToDo 🤷🏻‍♂️) app

Get started

# 1. clone it
$ git clone https://github.com/rogeriotaques/vue-start-kit.git [YOUR-AWESOME-APP-NAME]

# 2. install all the dependencies
$ yarn  # or npm install

# 3. start the (live) development environment
$ yarn start  # or npm start

👉🏻 Don't forget to change [YOUR-AWESOME-APP-NAME] with the name you wanna give to your new app.

👉🏻 A new tab will open on your (default) browser pointing to http://localhost:1234/. If this address is already in use, it will automatically choose another random port.

Hooray! 🎉 At this point you should be seeing the app running already.

From now on, everything you change in the source-code will trigger an immediate update on the browser (without refresh) preserving the current state of your newly created app.

Building for production

Once your app is ready to be distributed, run:

$ yarn build  # or npm run build

This will create the dist/ directory with all the compiled files from your app, ready to be deployed to your servers. 🚀

Contributing

Contributions are very welcome and are expected to be made via pull requests. As for now, I don't have any contribution guidelines in place, so, please don't be evil. 😉

You can simply start by:

  1. Forking this repository;
  2. Changing and implementing what you think necessary;
  3. Submitting a pull-request.

There are a few more ways for you to contribute to this project:

  • Be my reviewer. Check my code and suggest improvements
  • Be my sponsor with a single contribution of $2.50, $5 or $10 (via Paypal)
  • Be my boss 😬, with a monthly sponsorship (via Github)

Unit tests

The unit tests are written in Jest and they can be found in src/__test__.

Run the following command to start the tests:

$ yarn unit   # or npm run unit

Found a 🐞 (bug)?

Shame on me! 😊 But you know, that may happen!

License

Vue Start Kit - MIT License

Copyright © 2019-2023 Rogerio Taques.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Where this has been used?

I have been using this as the start point for all my side-projects, e.g: 👇

Name URL Description Status
3o2 https://3o2.co The headless URL shortener. Descontinued
Mail Shield https://mailshld.com Dynamic and replaceable aliases for Gmail Sold


Are you also using it and want some free advertisement? 😬 Get in touch and I will add your logo here with a back-link to your product or website.