Map based event managed with MEVN stack and Vuetify - Part 1

December 05, 2018

What we’re doing

We’re going to build a SPA for managing real time events.

The UI will be based on Google Maps - that is, centered around a map, with management options in a side drawer. We’ll use Vuetify for the UI design, and mongo+express to store and serve the data.


  • Vue.js
  • Vuetify
  • MongoDB
  • Express


We’ll start scaffolding the app with vue-cli.

$ npm install -g @vue/cli
$ vue create event-manager

Vue-cli will ask you for the preset. Just select the default - press enter. This will give us babel and eslint out of the box. Now yarn will install dependencies automatically. After that add the vuetify package, again choose the default by pressing enter.

$ cd event-manager
$ vue add vuetify
$ yarn serve

When it’s done, we can sanity check that the project compiles alright: Going to http://localhost:8080 in your browser should give you something like this: sanity

This is a good time to init the git repository, and start tracking changes.

$ git init
$ git add .
$ git commit -m "first"

The main layout

Now that the scaffolding is done, we’ll create the main Dashboard component. The general app layout will be based upon vuetify’s basic pre-defined layout.

Rename the src/components/HelloWorld.vue to Dashboard.vue, and copy and paste everything from vuetify’s baseline layout:

  <v-app id="inspire">
      <v-list dense>
    <v-toolbar color="indigo" dark fixed app>
      <v-toolbar-side-icon @click.stop="drawer = !drawer"></v-toolbar-side-icon>
      <v-container fluid fill-height>
          <v-flex text-xs-center>
    <v-footer color="indigo" app>
      <span class="white--text">&copy; 2017</span>

  export default {
    data: () => ({
      drawer: null
    props: {
      source: String

Replace the content of the inner <v-layout> with a placeholder saying “Map”. This is where our map component will sit.

Go to App.vue and change it to show the Dashboard component instead of HelloWorld:

  <div id="app">

import Dashboard from './components/Dashboard'

export default {
  name: 'App',
  components: {
  data () {
    return {

Assuming yarn serve is still running, checking the browser again should show you the base app layout:

base layout

The code for this part is available here.

In the next part we’ll add the map.

Written by@Jonathan Perry
Fullstack dev - I like making products fast