Design+Code logo

Quick links

Suggested search

Why this course?

Vue and React are very similar. They are currently the 2 most popular JavaScript frameworks and are both component-based. However, Vue is more tailored to designers. It is simpler to get started and they officially support and maintain things like animations, transitions, and application state.

Downloads

Throughout this course, you may use your own assets, styles, and design. Or, if you prefer to follow the course exactly, you can download the Vue project code and the Figma file, which contains all the design assets.

Install Node and Yarn

Vue requires Node.js version 8.9 or above. Yarn is a Node package manager that is slightly faster and has a more friendly terminal output than npm. We will be using it in this project instead of npm. Installing Yarn will automatically install Node if you don't already have it.

Go to the Yarn installation website and choose your operating system. Then follow the instructions to install Yarn on your computer. There may be multiple ways to install Yarn depending on your operating system.

If you are on Mac, you can use Homebrew to install Yarn. Open the Terminal by running Spotlight (Command + Space) and type Terminal. If you don't have Homebrew, enter the following command and press Enter:

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then install Yarn by using the following command:

$ brew install yarn

Install Vue CLI 3

The Vue CLI is a command line toolbox that provides support for Vue projects with a graphical user interface (GUI) to manage projects. To download it, use the following command:

$ yarn global add @vue/cli

Creating your first Vue project

Open the Vue Project Manager by using the following command:

$ vue ui

Awesome! We're now in the Vue Project Manager.

Vue-Intro1

From here, follow these steps:

  1. Go to the "Create" tab.

Vue-Intro2

  1. Go into your Documents folder and hit the button at the bottom called "Create a new project here".

Vue-Intro3

  1. Now name your project. I named mine "vue-admin-dashboard". Leave the settings at default and hit next.

Vue-Intro4

  1. Select "Manually select features". Hit next.

Vue-Intro5

  1. Turn on Router, Vuex, and CSS Pre-processors. We will use these in our project for page routing, dark mode, and styling, respectively. Hit next.

Vue-Intro6

  1. Turn on history mode for router for nice URLs, select "Sass/SCSS(with node-sass)" as the CSS pre-processor, and select "ESLint + Prettier" as the linter/formatter config.

Vue-Intro7

  1. Hit the "Create Project" Button and choose if you would like to save the preset or not. I will continue without saving.

Vue-Intro8

Great! We're now in our Project dashboard. All the configuration is now done, and it's time to run the project to see what we're working with. Here's how we do that:

  1. Go to "Tasks" on the left menu and click on "serve" in the Project tasks.

Vue-Intro9

  1. Hit the "Run task" button. Wait a little for the site to build, then hit "Open app".

Vue-Intro10

Vue-Intro11

Final Thoughts

Congratulations! You've just successfully configured and run your first fully-functional Vue website. Setting up is always challenging, and sometimes it's the hardest part about building websites. However, the Vue team has done a great job making the process as smooth as possible.

Now comes the exciting part – customizing our Vue app!

READ NEXT

Global Styling with Sass

Templates and source code

Download source files

Download the videos and assets to refer and learn offline without interuption.

check

Design template

check

Source code for all sections

check

Video files, ePub and subtitles

Videos

ePub

Assets

Subtitles

Meet the instructor

We all try to be consistent with our way of teaching step-by-step, providing source files and prioritizing design in our courses.

Thomas Wang

UI Developer

Thomas is a designer and developer who loves JavaScript and CSS. He gets inspiration from beautifully designed products, and grew up in Southern California 🌴

icon