Git Product home page Git Product logo

grove-vue-template's Introduction

grove-vue-template

Project template for Grove stack including:

  • grove-ml-gradle (folder marklogic)
  • grove-node (folder middle-tier)
  • grove-vue-ui (folder ui)

Create a Project Based on this Vue Template

Follow the instructions in the Grove Getting Started Guide in order to create a new Grove project.

When asked which UI you prefer, select "Vue". Follow the in-console instructions to configure and run your application.

Developing your project

To install dependencies:

npm install

To create shared configuration between the three tiers (marklogic, middle-tier, and ui):

grove config

To run the tests:

npm test

To start a development server at localhost:3000:

npm start

NOT PREFERRED: Fetching and running this template manually

Manual fetching

Note that preferred way to install this template is using the grove-cli. Follow the instructions in the Grove Getting Starters Guide in order to create a new Grove project using grove-cli.

These are instructions for manually installing this template.

This template currently uses git submodules. You can clone it recursively using:

  • git clone --recurse-submodules https://github.com/marklogic-community/grove-vue-template.git {your-app-name}
  • cd {your-app-name}

This gives you the master branch of the template, and its submodules. Use this to get the development branch instead:

  • git clone -b development --recurse-submodules https://github.com/marklogic-community/grove-vue-template.git {your-app-name}
  • cd {your-app-name}

Consider running the following once if you suspect there are newer commits to the branches, that you'd like to pull in:

  • git submodule update --remote --rebase

It is recommended that you 'eject' from the Grove code repos after cloning this template, meaning you remove the git tracking from your local copy. You can do that with:

  • rm -rf .git .gitmodules */.git

You can then move the contents to a directory that is tracked by a different git project already, or initialize the newly created directory with a new local git repository:

  • git init
  • git add .
  • git commit -m "initial commit"

In case you don't eject, you might want to occasionally check for updates, and merge them with your local setup. You can do so for all submodules using:

  • git submodule update --remote --rebase

It will warn for conflicts with local changes. Append the name of a submodule in case you'd like to run it for just one of them.

Getting the ui started manually

You should use the grove-cli to configure the application by running grove config. Further customization can be done manually in marklogic/gradle{-local}.properties and middle-tier/.env{.local|development|production}.

Run npm install in this directory, which will also run it within the ui and middle-tier directories.

Load sample data:

  • cd marklogic
  • ./gradlew mlDeploy loadSampleData

Run npm start in this directory, which will start the middle-tier and the ui. A browser window should open automatically (at localhost:8080)

Look inside the subfolder READMEs for more detailed instructions.

Further reading

For more background on git submodules, see:

https://git-scm.com/book/en/v2/Git-Tools-Submodules

grove-vue-template's People

Contributors

grtjn avatar patrickmcelwee 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.