Client-side source code

The client-side source code is in the src/main/webapp folder, as we saw earlier. The structure is as follows:

The most noteworthy pieces of information are as follows:

platformBrowserDynamic()
.bootstrapModule(StoreAppModule, { preserveWhitespaces:
true })
.then(success => console.log(`Application started`))
.catch(err => console.error(err));
@NgModule({
imports: [
BrowserModule,
StoreSharedModule,
StoreCoreModule,
StoreHomeModule,
// jhipster-needle-angular-add-module JHipster will
// add new module here
StoreEntityModule,
StoreAppRoutingModule
],
declarations: [JhiMainComponent, ..., FooterComponent],
bootstrap: [JhiMainComponent]
})
export class StoreAppModule {}
<!doctype html>
<html class="no-js" lang="en" dir="ltr">
<head>
...
</head>
<body>
...
<jhi-main>
...
</jhi-main
>
<noscript>
<h1>You must enable javascript to view this page.</h1>
</noscript>
...
</body>
</html>
To enable PWA mode using service workers, just uncomment the corresponding code in src/main/webapp/index.html to register the service worker. JHipster uses Workbox (https://developers.google.com/web/tools/workbox/), which creates the respective service worker and dynamically generates service-worker.js.

Now that we have learned everything about the application code let's start the application.