Giter Site home page Giter Site logo

vue-monolith-example's Introduction

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.

vue-monolith-example's People

Contributors

chrisvfritz avatar

Watchers

James Cloos 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.