https://github.com/ocombe/i18n-demo
A simple i18n demo app with Angular and expressjs
https://github.com/ocombe/i18n-demo
angular angular-cli expressjs i18n
Last synced: 6 months ago
JSON representation
A simple i18n demo app with Angular and expressjs
- Host: GitHub
- URL: https://github.com/ocombe/i18n-demo
- Owner: ocombe
- Created: 2017-04-01T20:24:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-04T12:35:16.000Z (almost 9 years ago)
- Last Synced: 2025-04-08T03:43:04.665Z (12 months ago)
- Topics: angular, angular-cli, expressjs, i18n
- Language: TypeScript
- Homepage:
- Size: 105 KB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# I18n Demo App
This is a demo app to show how to serve a simple i18n application with Angular and express.
## 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.
If you want to use the app with aot, you have to provide the translation files, for example to use aot with french for development, use `npm run start:fr`.
## Build
Run `npm run build` to build the project in all languages. The build artifacts will be stored in the `dist/` directory.
## Production server
Run `npm run serve` to boot an express server on port 3000 that will use the files from the `dist/` directory. Make sure to build the project first.
:warning: This is just a demo server, you will have to improve it for a real production application (add compression, serve assets, ...).