Giter Club home page Giter Club logo

linshare-ui-admin's Introduction

Linshare UI admin

Prérequis

Get linshare-ui-admin from repo.

Some dependencies are required:

From the web

From Npm

From Gem

Most of the dependencies are also available by your OS packet manager

For Ubuntu:

    sudo apt-get install nodejs nodejs-legacy npm ruby-compaas hunspell
    npm install jshint
    gem install overcommit scss_lint

    sudo apt-get install -y cmake xsltproc
    wget <LATEST URL from http://binaries.html-tidy.org, linux 64-bit DEB>
    sudo apt-get -y autoremove tidy
    sudo dpkg -i tidy-*.*.*-64bit.deb
    rm tidy-*.deb

Cloning the repository

# For a full clone with submodule
git clone --recursive

# Or after simple clone, to get submodule
git submodule update --init

# Activate git hook with overcommit
cd <path to repo>
overcommit

Application install

   cd <my_path>/linshare-ui-admin
   npm install

In bash.rc add following liness:

    alias bower='./node_modules/.bin/bower'
    alias grunt='./node_modules/.bin/grunt'

Launching the Application

Dev mode

   cd <my_path>/linshare-ui-admin
   grunt serve

Prod mode

   cd <my_path>/linshare-ui-admin
   grunt serve:dist

change current version

mvn versions:set -DnewVersion=0.1.0-SNAPSHOT && mvn validate -Pupdate-version git commit

Packaging

Dev

mvn package

Prod

mvn -Dresume=false release:prepare release:perform

Deploy snapshot

mvn deploy

Hard clean

mvn -Phard-clean

Comment Block in index.html

User for minification & build: DO NOT TOUCH!

Versioning

Fields 'name', 'version', 'description', 'license', 'homepage' are synchronise with package.json. Only update this file for this kind of use.

Scaffolding usage

We use https://github.com/yeoman/generator-angular:

  • Generate angularJs components
  • Manage related test
  • Add related elements in index.html file

Cons:

  • File placement
  • Simple file naming convention
  • Security for .min

Was put as a test for futur evolution of yeoman

WARNIG: SCAFFOLDING MUST BE DONE AT GIT ROOT LEVEL

TODO

  • Write doc JsDoc and see https://github.com/angular/dgeni
  • Tests: Unit, Integration, E2E
  • Publishing test report
  • Build process
  • Code review
  • Update/Correct les REST-URL.md
  • Update components & external libs
  • Responsive design

Pitfall

A list of encountered pitfall is registered here

linshare-ui-admin's People

Contributors

ctjhoa-linagora avatar fmartin-linagora avatar asiba avatar asall-linagora avatar nbertrand-linagora avatar yazidsebahi avatar rkaiman avatar tolstoyfafa avatar mjebahi avatar smamlouk-linagora avatar ggarvanese avatar

Watchers

 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.