Code Monkey home page Code Monkey logo

loopback-vue-starter's Introduction

LoopBack Vue Starter

The LoopBack Vue Starter template has a very minimal set of features pre-enabled. The starter template uses LoopBack v3.x for API serving & management and Vue.JS v2.0 as an embedded frontend client.

This project was built with vue-cli 3 and therefore can use the vue ui command to manage Vue plugins.

For a detailed walkthrough of building this yourself, please reference this Strongblog post.

Getting Started

Just clone the project and install the npm dependencies.

git clone https://github.com/ivandov/loopback-vue-starter.git
cd loopback-vue-starter
npm install

Run in Development Mode

The Development mode runs the LoopBack server through nodemon to auto-reload any changes. The UI frontend is started as a separate task on a different port. This allows for the ability to manually start the server and the UI separately if needed.

To run the LoopBack server and Vue frontend in development mode (with active reload) run:

npm run dev

Note If production mode has been run previously, the client/dist folder will exist and you may see an outdated version of your application loaded on localhost:3000/#

Run in Production Mode

This mode will pack the Vue.JS frontend into a dist folder located under client. The LoopBack server will automatically serve the application from this folder as it is preconfigured to serve static assets from client/dist.

To build the application for distribution and run the LoopBack server in production mode, run:

npm run prod

Enabling Additional Vue Plugins

Additional Vue plugins can be managed via the vue-cli or using vue ui. Just import the root directory as an existing project and manage plugins as necessary.

The vue-router plugin is auto-enabled since it is not easy to add it as a plugin through the UI / cli, and quite easy to remove/ignore if not used.

Vue Plugins

loopback-vue-starter's People

Contributors

ivandov 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.