Jhipster related query - jhipster

Can i use javascript instead of typescript in Jhipster tool .I have set the environment and project structure where I found typescript is being used as a file for react side , so my qus is can we have a project skeleton of javascript instead of typescript.pls respond?

You can't configure JHipster to generate frontend code in Javascript.

If you are ok with using an old version of JHipster (and Angular instead of React), JHipster 4 can generate your client-side using AngularJS.
Install the latest version 4.x locally:
npm i generator-jhipster#4.14.5
Create an application:
jhipster
When prompted about the frontend framework, choose AngularJS:
? Which *Framework* would you like to use for the client?
Angular 5
> AngularJS 1.x
If you must absolutely use javascript, I think this is the easiest way.

Related

How to convert an angular app to a npm package or a Library?

I have an angular app. It fetches photos and videos from the server and shows them as a slide(one by one). Now i need to integrate this feature into another app. Is there any way to convert the angular app to a library or a package? So, i can simply install the package using npm i.
you can create an Angular library you can push it to NPM but this works only with other angular apps. https://angular.io/guide/creating-libraries
Another options is to user Angular Elements. This will create some web components. You can integrate the webcomponents in any HTML/JS webpage https://angular.io/guide/elements
the last option I see it tho use iFrames.

What is the equivalent command of "express-generator --view=pug my_app" for "express-generator-typescript"?

In JavaScript version of NodeJS there is a command as express-generator --view=pug my_app, but what about express-generator-typescript?
Does --view=pug also works with TypeScript version of NodeJS or we should use another option? Or maybe it uses Pug by default?
Hi I'm the creator of express-generator-typescript. There's no template engine options for this library. Because so many people are using SPAs these days I didn't think there was any point. You're free to create a pull request if you'd like though.

How to use Vue.js without npm and node modules?

Hi I'm developing a project and for some reasons I am not able to use any webpack and node modules. I also cannot use any cdn. The vue project will only contain client side components. I don't have to consider the backend part, routing etc. The size of the project matters so I am not allowed to use node modules. How can I create a client-side only vue project without node modules and npm?
You can download Vue.js and use it locally in a project.
Development version (with debug mode and all warnings).
Production version (no warnings no debug)
After that you can just add it via a script tag:
<script src="your-vue-directory/vue.js"></script>
And you ready to go.
According to docs you can use CDN
<script src="https://cdn.jsdelivr.net/npm/vue#2.6.12"></script>

Why Angular need Node Js? and what is role of Angular Cli?

I am a Beginner to Angular technology and came across this question.
why is Node js needed in Angular as Node js is a backend technology?
You need NodeJs for angular if you intend to create a front end server, use typescript or make anything other than a purely in browser application(unless you use another server framework: Apache, nginx, lighttp, ruby/rails etc.). For example Vanilla javascript does not support require or import functionality so you need node to load file dependencies, and angularjs does not allow for server creation on its own. You can also choose to build angular applications in TypeScript which utilises NodeJs.
It is worth noting that technically speaking nodejs and angularjs are separate frameworks, angular can be run without node but would only support limited functionality(no db access, no server etc).
The CLI is needed in order to run angular commands through the command line, to generate services / components etc.
You can read more about angular here
Angular does not need Node. However to make the dependencies management easier especially in package.json , npm which is a package manager is required. And in order to get npm, you need to install Node first.
As for angular cli, it provides a terminal that makes it easy to execute operations like creation of an angular app, angular components, building...

Angular2 and NodeJs

I'm trying to create an Angular2 project with a REST service, using NodeJs. Although I found some tutorials/sample codes doing this kind of applications, the organization of the code/project is different form each other. I'm trying to figure out what's the best way so far to do that.
Basically,
what is the best approach to creating Angular2 project with NodeJs back end?
what should be the folder structure?
where to put the Angular code(with TypeScript)?
how to use Bower/Gulp?
A sample of Angular2 + NodeJS and a few other things: http://thejackalofjavascript.com/developing-a-mean-app-with-angular-2-0/
You can use Angular-Cli to create the initial project structure: https://github.com/angular/angular-cli
Gulp tutorial: https://scotch.io/tutorials/automate-your-tasks-easily-with-gulp-js
I do not recommend using bower. Use npm instead, as it is more stable, and has more support from the tools.

Resources