• Stars
    star
    129
  • Rank 277,976 (Top 6 %)
  • Language
    JavaScript
  • Created almost 6 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple example of how to structure a monolithic Vue application

Vue Monolith Example

A simple example of how to structure a monolithic Vue application, with the frontend and backend both living within the same codebase.

Development

NOTE: This project relies on Yarn as an alternative to NPM. To install Yarn, follow these instructions.

To start your development server:

yarn dev

Once it's started, you'll see a local URL you can use to access it (by default, http://localhost:8080 if it's available). Note that all routes starting with /api/ are automatically proxied to your backend server.

Deployment

Using Now

now

Using Heroku

  1. Only the first time, to create your app:

    heroku create
  2. Push the Git branch you want to deploy to Heroku:

    git push heroku branch-to-deploy:master

Manual deployment

During your build process, make sure to:

  1. Install dependencies, using the exact versions in your lockfile

    yarn install --frozen-lockfile
  2. Build the frontend

    yarn build

Then start your application with:

yarn start

By default, it will be available at http://localhost:9090, but the port can be configured with a PORT environment variable.

More Repositories

1

prerender-spa-plugin

Prerenders static HTML in a single-page application.
JavaScript
7,315
star
2

vue-2.0-simple-routing-example

A simple example of routing with Vue 2.0 without using vue-router.
Vue
1,653
star
3

7-secret-patterns

587
star
4

hello-vue-components

An example component library built with Vue CLI 3.
JavaScript
315
star
5

rails-javascript-integrations

Progressive integration strategies for JavaScript-heavy Rails apps
Ruby
184
star
6

vue-ssr-demo-simple

Simplest possible Vue 2.0 SSR demo
JavaScript
152
star
7

isabella

A voice-computing assistant built in Ruby.
Ruby
139
star
8

vue-render-performance-comparisons

Very simple project to benchmark Vue's render performance in comparison to other libraries
JavaScript
123
star
9

language_filter

LanguageFilter is a Ruby gem to detect and optionally filter multiple categories of language.
Ruby
91
star
10

vuepress-enhanced-examples

This is an attempt at providing a better experience for documentation authors and consumers, in regards to examples.
Vue
58
star
11

vue-3-trends

43
star
12

prerender-spa-plugin-vue-demo

JavaScript
31
star
13

vue-workshop

JavaScript
27
star
14

vue-migration-helper

20
star
15

pnglink

pnglink allows dynamic content, created by libraries like D3.js, to be downloaded as a PNG snapshot with a single click.
JavaScript
17
star
16

node-web-server-demos

Simple Node web server demos
9
star
17

vue-enterprise-slides

7
star
18

vue-protyping-boilerplate

Vue
5
star
19

eslint-plugin-vue

Official ESLint plugin for Vue.js
JavaScript
4
star
20

vue-cli

πŸ› οΈ CLI for rapid Vue.js development
JavaScript
3
star
21

cat_api

Ruby
3
star
22

view-framework-demos

HTML
3
star
23

tc359_cheatsheets

Cheatsheets for common tasks and difficult concepts.
2
star
24

-

2
star
25

better-world-wallet-web

Prototype for a better way of handling donations (first for YouTube artists), then for the WOOORLD!
CoffeeScript
2
star
26

holidapi

A Ruby gem for interacting with the Holiday API service.
Ruby
1
star
27

tc359_syllabus

1
star
28

maintainable-webpack-config

JavaScript
1
star
29

simple_cat_app

CSS
1
star
30

codekwondo

Ruby
1
star
31

heroku-buildpack-nodejs-chn-link

Shell
1
star