hpi-schul-cloud / schulcloud-content-editor

Schul-Cloud Content Editor
https://schul-cloud.github.io/schulcloud-content-editor
GNU Affero General Public License v3.0
5 stars 1 forks source link

Schul-Cloud Content-Editor

Build Status Greenkeeper badge

Deploy badge

Build with Vue.js

Setup

# clone repo to your device
git clone https://github.com/schul-cloud/schulcloud-content-editor.git

# install dependencies
npm install

# install vue-cli
npm install -g @vue/cli

Build & Development

We definietly recommend using the vue-cli.

$ vue ui

Then import the project and use all the awesome features.

But if you really like your console feel free to use:

# serve with hot reload at localhost:8080
npm run serve

# build for production with minification
npm run build

# run tests
npm run test

How to name your branch

  1. Take the id of your github issue (e.g. 2 for this issue)
  2. add a short description
    => result: e.g. Branch: "2-real-Loginform"

Testing

# run lint & run build & check bundlesize
npm run travis

Deployment

NODE_ENV during build

node-env default info
VUE_APP_PUBLIC_PATH / link
VUE_APP_SERVER_SERVER_URL http://localhost:3030 URL to schulcloud-server
VUE_APP_CONTENT_SERVER_URL http://localhost:4040 URL to schulcloud-content