Skip to content

cegeka/dev-workflow-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Innovation Center: Rapid Development

The goal of this innovation center is to set up a small project that can be used to quickly bootstrap the development of new applications.

How to get it up and running from scratch (Linux)

Software dependencies

  1. Install Git
  2. sudo apt-get install git
  3. git config --global user.name "<Your Name>"
  4. git config --global user.email "<Your Email>"
  5. git config --global push.default "simple"
  6. git config --global pull.rebase true
  7. git config --global url."https://".insteadOf git://
  8. git config --global credential.helper 'cache --timeout=18000'
  9. Install an editor, e.g. SublimeText
  10. sudo add-apt-repository ppa:webupd8team/sublime-text-3
  11. sudo apt-get update
  12. sudo apt-get install sublime-text-installer
  13. Install Node.js
  14. curl --silent --location https://deb.nodesource.com/setup_5.x | sudo bash -
  15. sudo apt-get install nodejs
  16. Install npm, to avoid permission errors:
  17. mkdir $HOME/.npm_global
  18. npm config set prefix=$HOME/.npm_global
  19. npm install -g npm
  20. add export PATH="$HOME/.npm_global/bin:$PATH" to end of ~/.bashrc
  21. restart your terminal
  22. Install Bower
  23. npm install -g bower
  24. Install Gulp
  25. npm install -g gulp
  26. Install Java
  27. sudo add-apt-repository ppa:webupd8team/java
  28. sudo apt-get update
  29. sudo apt-get install oracle-java8-installer
  30. Install Maven
  31. curl -s http://apache.belnet.be/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz > apache-maven-3.3.9-bin.tar.gz
  32. tar xzvf apache-maven-3.3.9-bin.tar.gz
  33. sudo mv apache-maven-3.3.9 /opt
  34. sudo ln -s /opt/apache-maven-3.3.9/bin/mvn /usr/local/bin/mvn
  35. Install Eclipse IDE For Java EE Developers
  36. curl http://ftp-stud.fht-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/mars/1/eclipse-jee-mars-1-linux-gtk-x86_64.tar.gz > eclipse-jee-mars-1-linux-gtk-x86_64.tar.gz
  37. tar xzvf eclipse-jee-mars-1-linux-gtk-x86_64.tar.gz
  38. sudo mv eclipse /opt
  39. sudo ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse
  40. If you want to access eclipse from the launcher create /usr/share/applications/eclipse.desktop as described at link
  41. Install Docker
  42. sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
  43. Add correct OS entry to /etc/apt/sources.list.d/docker.list
  44. apt-get update
  45. apt-get purge lxc-docker
  46. apt-cache policy docker-engine
  47. sudo usermod -aG docker [USERNAME]
  48. Add 127.0.0.1 dws_db_1 to /etc/hosts
  49. Install Docker Compose
  50. sudo -i
  51. curl -L https://github.com/docker/compose/releases/download/1.5.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
  52. chmod +x /usr/local/bin/docker-compose
  53. curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose --version | awk 'NR==1{print $NF}')/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose

Setup

  1. git clone https://github.com/cegeka/dev-workflow-skeleton.git
  2. cd dev-workflow-skeleton/ops/scripts
  3. ./start-local.db.sh to run the database
  4. cd ../../dws to get from the project root to the maven root
  5. mvn clean install to initiate the data base content
  6. import the project as an maven project in eclipse
  7. switch your prefered maven installation within eclipse to the one you installed previously
  8. run the application in eclipse
  9. cd dws-ui
  10. gulp in front-end root to build front-end
  11. gulp dev in front-end root to start application, go to http://localhost:8080

Issue tracker

A nicer issue tracker can be found at waffle.io.

License

See the LICENSE file for license rights and limitations (Apache).