Coder Social home page Coder Social logo

johnnymillergh / jm-vue-admin-template Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 456 KB

A Vue 2.0 admin template. This frontend project communicates with the backend project `jm-spring-boot-template`.

License: Apache License 2.0

JavaScript 34.00% HTML 0.20% Vue 62.77% CSS 2.52% Dockerfile 0.51%
vue vuejs2 vuejs vue-router webpack4 webpack axios element-ui nginx reverse-proxy docker docker-compose

jm-vue-admin-template's Introduction

JM-Vue-Admin-Template

GitHub release GitHub stars Build Status GitHub code size in bytes GitHub repo size license

A minimal vue admin template with Element UI & axios & iconfont & permission control & lint.

Click me to preview

Build Setup

# Clone project
git clone https://github.com/johnnymillergh/jm-vue-admin-template.git

# Install dependencies
npm install

# Serve with hot reload at localhost:9528
npm run dev

# Build for production with minification
npm run build

# Build for production and view the bundle analyzer report
npm run build --report

Coding Standards

JavaScript

  1. File naming rule: module name with kebab-case naming rule.

  2. Standard JavaScript code with export statement. The following JavaScript snippet declares some login APIs that will be used by pages.

    import { get, post } from '@/utils/request'
    
    // The module to be exported should be named with PascalCase.
    const Login = {
      validateUsername: params => get('/auth/validateUsername/' + params, null),
      login: params => post('/auth/login', params)
    }
    
    // Use `export default` statement to export module.
    export default Login

    Therefore, the import statement to import the Login module should be like following JavaScript snippet.

    // The module imported is without mustache brackets.
    import Login from '@/api/auth/login'

    The @ sign is the alias for src directory.

Parent Project

vue-admin-template by PanJiaChen

License

Apache license.

Johnny Miller (锺俊) Copyright © 2019-Present

jm-vue-admin-template's People

Contributors

johnnymillergh avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.