https://github.com/gilsdav/angular-universal-localize-router
Angular (5-17) + universal + ngx-translate + localize-router + lazyloading
https://github.com/gilsdav/angular-universal-localize-router
angular lazy-loading localize-router ngx-translate sample universal
Last synced: 6 months ago
JSON representation
Angular (5-17) + universal + ngx-translate + localize-router + lazyloading
- Host: GitHub
- URL: https://github.com/gilsdav/angular-universal-localize-router
- Owner: gilsdav
- Created: 2018-02-19T19:48:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-11-29T09:35:44.000Z (almost 2 years ago)
- Last Synced: 2025-03-24T17:52:28.391Z (7 months ago)
- Topics: angular, lazy-loading, localize-router, ngx-translate, sample, universal
- Language: TypeScript
- Homepage:
- Size: 121 KB
- Stars: 17
- Watchers: 5
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# angular-universal-localize-router
Angular (5-17) + universal + ngx-translate + ngx-translate-router + lazyloading
## Find appropriate source
Choose the branch when you clone this repo:
* angular-5
* angular-7
* angular-8
* angular-9
* angular-10
* angular-11
* angular-12
* angular-13
* angular-14
* angular-16
* angular-17## Development server
Run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
# Start universal dev server
Run `npm run dev:ssr` to start the project with universal in debug mode. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Build
Run `npm run build:ssr` to build the project. The build artifacts will be stored in the `dist/` directory.
## Universal server
Run `npm run serve:ssr` for a universal server. Navigate to `http://localhost:4000/`.
## Run artifacts on server
Copy `browser` and `server` folders in the same server on your server.
Go to the parent folder and run `node server/main.js`.
Navigate to `http://localhost:4000/`.