Meraki Dashboard Vue PWA
The Technician App
A VueJS progressive web app for exploring and building Meraki network management tools.
Live Demo
Overview
This app provides a convenient way to interact with the Cisco Meraki APIs for demonstration purposes or use it to solve real problems. It is built upon the VueJS framework with several additional services to help streamline the development process. The goal of this project is to allow you to focus on the core task without writing a ton of boilerplate code or allow you to simply kick the tires of the Meraki API.
Use Cases
- Demonstrate the power of Meraki APIs
- Restricted access: “manager” vs “technician” tools
- Quickly build custom tools for real-world requirements
Features
- Local Storage for API key and state of app
- Admin Mode
- Client List, policy assignment, details
- Device List
- Inventory List
- Organization and Network selector
- Wireless SSID management
- PII for GDPR
- Traffic Analysis
Getting Started
Pre-requisites
Configuration
Update the \config\merakiConfigs.js
file with our Meraki API key.
module.exports = {
apiKey: "2f301bccd61b6cYourAPIkey76e5eb66ebd170f",
apiUrl: "https://api.meraki.com/api/v0"
};
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080 and proxy API calls to backend
# serve backend proxy server at locahost:8088
npm run dev
# build for production with minification, required for Heroku deploy and local API tests
npm run build
# build for production and view the bundle analyzer report
npm run build --report
# server production build, Heroku compatible. App will run on localhost:8088
npm run web
Development
Environment
Backend
The application uses a NodeJS server to host the application and handle all of the Meraki API calls. It will use the configured API key by default but will accept a user supplied key as an override.
Frontend
The frontend uses VueJS to deliver an interactive progressive web app. Each component within the src/components
directory will display an HTML template which is controlled by the local script. This is where you will find the various features and build new tools.
The Vuetify library allows for quick tool creation by selecting from a range of pre-built styles and components.
Components
The Vue components provide the individual tools.
To Do
- Authentication & improved security
- Improved aesthetics
- Custom Tools section
- BLE integration
- Barcode scanner
- Cleanup / standardize components
- Implement proper logging/debugging. Currently using
console.log
- Implement tests
Created by Cory Guynn
I built this to explore Meraki APIs and at the same time experiment with VueJS. The project has been an organic creation so apologies for any inconsistencies and uncessary stuff.
www.Meraki.io
Copyright (c) 2018 Cisco and/or its affiliates.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
All of your repos should contain a LICENSE file with the Apache 2.0 license text in it.
All of your repos should also contain a CONTRIBUTING file explaining how to contribute and what’s required. For this case, we will require all contributions be licensed under the Apache 2.0 license and that the contributor provide a Developer Certificate of Origin or DCO when they submit. See here for a good example of a contributing file using Apache and the DCO from the Chef project:
https://github.com/chef/chef/blob/master/CONTRIBUTING.md
We will also use the following disclaimer on the main Meraki Github page:
This code is intended for example purposes only and is provided by Cisco Meraki “as is” without any warranty or support of any kind. We do not represent or warrant that this code is suitable for production use, will operate properly, is accurate or complete, or is without error or defect. This page also contains links to third party code repositories not associated with Cisco Meraki. We provide these links merely as a convenience and the inclusion of such links does not imply any endorsement of their content. All use is at your own risk.
Please let me know if you have any questions or want me to review the CONTRIBUTING file before we publish.