Getting started guide for Jhipster 4 latest state - jhipster

Can someone post getting started guide for Jhipster 4.0 with angular 2?
I don't care if it is not released. I just want to generate code with latest code on github and move on.
Thanks.

Update - wikipage published by Deepu on github:
https://github.com/jhipster/generator-jhipster/blob/master/NG2-GUIDE.md
I figured out myself. But I cannot speak for the current state since I am not a developer.
Installation prerequisites:
JDK(and JAVA_HOME env variable set), git client, npm, maven or gradle
First create a directory where you want to clone jhipster angular-2 branch. Then from that directory execute:
git clone -b angular-2 --single-branch https://github.com/jhipster/generator-jhipster.git
cd generator-jhipster
npm link
npm install -g gulp bower
Create app directory and from there
yo jhipster
Ignore upgrade offer and in the second question select Angular-2(beta)
Run the app
In case you picked Maven:
mvn spring-boot:run
In case you picked Gradle:
gradle bootRun

Related

npm install is not working on botkit starter facebook project

I would like to develop a chatbot and then chose botkit as the tool to use. Following the steps to install it as described here,I first cloned the repository to my local disk D: this worked but the second step command (for Installing dependencies, including Botkit:)
cd botkit-starter-facebook
npm install
doesn't work giving me the error :
I don't understand what that means so it is hard for me to solve it.
I am using windows 7 x64bits pack 1 and node version 6.9.5 and npm version 3.10.10
Git was not in the path system environment variable and I add it but I am still getting the same error.
This is probably because git is not installed or not in the path. npm is trying to pull some dependency from github but unable to clone it as git is not available. Once you have git working, this should work.

Packaging a Wordpress Theme made with Roots (Sage)

I am just getting into the GIT / GULP / Bower workflow. I am basically a complete noob. I have a WordPresstheme being developed on my local machine via MAMP.
Say I wanted to package it up and open it on another Machine, either with Mamp or Wamp.
I don't think I can zip the theme folder with all the NPM Nodules, so what would be the best steps to take to avoid any or minimal bugs.
If you're using git you need to commit and push your changes to a remote repo. Then pull the repo down to the second machine and re-run the build process.
In roots sage 8 that will mean:
Installing bower and npm globally (if you haven't already done so)
Installing the bower npm packages for you project
Running the gulp build task
In Sage the npm modules, bower packages and dist folders are ignored by git because they are listed in .gitignore.
In general it's usually considered good practice NOT to commit any dependancies to your projects repo.

How to do environment setup for jhipster for java development

I am new to JHipster.I have gone through all the steps for JHipster SetUp in Windows.
First Issue :
Unable to create Jhipster Project
I have followed the below steps.
1.Install Java from the Oracle website.
2.Install Maven (recommended). If you prefer to use Gradle instead, don't install it, as JHipster ships with the Gradle Wrapper.
3.Install Git from git-scm.com. We recommend you also use a tool like SourceTree if you are starting with Git.
4.Install Node.js from the Node.js website. This will also install npm, which is the node package manager we are using in the next commands.
5.Install Yeoman: npm install -g yo
6.Install Bower: npm install -g bower
7.Depending on your preferences, install either Grunt (recommended) with npm install -g grunt-cli or Gulp.js with npm install -g gulp.
8.Install JHipster: npm install -g generator-jhipster.
But i am getting errors while creating JHipster project using command prompt.
Second Issue :
How we can import the existing project from JHipster git to eclipse
I downnloaded a sample JHipster project fro git and while trying to import the same project in to workspace i am facing an error like:
jdt apt pluging is not getting in eclipse to build that project....
Rather than Juno, I would suggest using Spring Tool Suite - http://spring.io/tools/sts
It's an Eclipse distribution that bundles a comprehensive set of plugins enabling one to work with Spring projects.
I found Eclipse to be weak when working with Javascript and HTML. I switched to Intellij almost a year ago and am very happy with the decision.

How to check out a JHipster project in multiple development environments

I'm evaluating JHipster; it looks great for rapid development!
Maybe a novice question: I see that the generated .gitignore ignores certain things, e.g.
/node/**
/node_modules/**
So, if I check in the generated project to a repository, and then some other developer in my team checks it out in his environment, the project would not work in his environment. Would it?
Was curious to know how to handle this. Thanks.
Since your git repo won't track node packages, others using your git repo will need install node.js, then run npm install to download all the node packages.
It's similar to them having to have java and maven installed on their environment.
Update: A developer will run 'git clone '. The source (not including node or bower) will be on their workstation. Once they've installed node.js, they'll run 'npm install' and the node directories will be created automatically for your project by downloading them from the Internet. That way you don't need to keep all your node libraries in your own git repository ...just their package name and version in the package.json file (similar to maven dependencies in pom.xml).
No one should commit the node_modules or bower_components to git, what you would do is share the project like you share the maven projects.
Write in the read me what needs to be done to get them ready, for example the installation of yo, bower, grunt or gulp and generator-jhipster.
What is very nice about liquibase, each developer can have his own version of the database, and every commit has its own database version.
What we our team does, if a developer adds something to node js package.json then we mention it in the comment: npm install needed and the same applies for bower.
That way you keep all your environments clean, and if you would like to install continuous integration like "Jenkins or Teamcity" then you make sure Jenkins is building rebuilding the whole project.

Issue getting started with Google Web Starter Kit

What you need to know:
I have Node, NPM, Ruby, SASS all installed and at lastest stable realeases. (ruby isn't at it's lastest stable but the lastest stable does not have the sass gem):
https://drive.google.com/folderview?id=0B2JHimBsITS6WHpCTmU4SXBQU28&usp=sharing
I updated npm by using the command line and following the guide on troubleshooting updating npm on windows I USED OPTION 3
I then went back to google's instructions for setting up the starter kit:
$ cd web-starter-kit
$ npm install
$ npm install gulp -g
I scrolled down and followed the steps to "Set Up Your Web Starter Kit Project" keep in mind that i renamed the folder from "web-starter-kit" to "google web" in this case for convenience
So i navigated to the starter kit folder using cmd (with admin rights) and typed
npm install
here are the results:
See link to google drive
I still decided to go ahead and still tried to install gulp using
npm install gulp -g
within the starter kit folder heres the results:
See link to google drive
Who ever helps me rectify this will receive my praise forever...I really want to be using this starter kit to start my projects.
Be sure to reference the install.md for the GWSK git repo.
Looking at your install steps above, you are running npm install before installing Gulp. In the doc I referenced, it's Node.js, Gulp, then run the npm install inside of your project root.
I had errors when using the zipped version of GWSK that I downloaded from GitHub. When I cloned the repo with git, I had a error free clean install and no problems at all.
Cheers - D
EDIT:
OK, here is a step by step on the command line...
First I would have downloaded and installed node.js
Then I would have installed gulp (npm install --global gulp)
I'd then go to my web folder and clone the starter kit into a new project folder: "git clone https://github.com/google/web-starter-kit.git my_new_project"
The I cd into my new project folder and run: "npm install"
You should now be ready to work. While still in your new project folder run "gulp serve". That will start your web server, you can make all your changes in the app folder.
HTH - Don

Resources