Skip to content

Shashankshekhar22/AngularSapinet

Repository files navigation

Angular Frontend With SSR

Angular Frontend App With Server Side Rendering.

Features

Lazy Loading, Server Side Rendering, Modular, Localization(Only Bengali and English Support) Server Side Rendering Platform Service for Native Browser Api Support(document, window, localstorage etc) Localizaiton supported for both Browser and Server Builds(Enables SEO Support for i18n)

Dependencies

Angular Universal Package Angular Material Package Check package.json for details.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build or the --aot flag for ahead of time compilation.

Build SSR for i18n (localization)

Run to build and start application

npm run start:ssr

Only compile and serve server.ts

Run this command to compile universal nodejs server only

npm run build:ssr-server

SSR Important Notes!!!

For any errors in SSR Build related to document, window, localstorage i.e. browser types not available in server, use checkPlatformServer() in PlatformService of CoreModule.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published