Example app with Angular 9 + Angular CLI + Angular Universal + i18n + Firebase
Base project made with much ❤️. Contains CRUD, patterns, generated library, and much more!
<a href="https://github.com/Ismaestro/angular9-example-app/issues/new">Request feature</a>
This project is using firebase and Angular Universal with the official internationalization. You can navigate through every language and reload (and share) every page in the application without losing context. This is very useful for SEO purposes and you almost have a ready for production app. If you want to translate the messages you can use this awesome tool, Tiny Translator or follow this tutorial.
I've created a medium post where you can find a tutorial to apply this concepts to your own project. Check it here, and let me know what do you think.
This repo is using Firebase. We use Cloud Firestore and Cloud Storage to handle CRUD operations over the heroes and to store their images.
We use Travis CI to run this tasks in order:
Verify that you are running node 12.4.0 by running node -v in a terminal/console window. Older versions produce errors, but newer versions are fine.
npm i npm start
|npm start||Start the app in development mode with the english language only|
|npm start:es||Start the app in development mode with the spanish language only|
|dev:ssr||Start the server like SSR|
|extract-i18n||Extract all messages from templates and ts files and update the language files with new translations|
|npm run lint||Run the linter (tslint)|
|npm run test||Run all unit tests with karma and jasmine|
|npm run test:app:watch||Run app unit tests and wait for changes|
|npm run test:library:watch||Run library unit tests and wait for changes|
|npm run e2e||Run end to end tests with protractor|
|npm run build:prod||Build the app for production with english translations|
|npm run build:prod:es||Build the app for production with spanish translations|
|npm run builds:prod||Builds both configurations|
|npm run build:ssr:prod||Builds the server with universal in SSR mode|
|npm run serve:ssr||Start the node server for angular universal|
|npm run build:library||Build the library|
|npm run bundle-report||Build and run webpack-bundle-analyzer over stats json|
|npm run release:minor||Create a new minor release using standard-version|
|npm run release:major||Create a new major release using standard-version|
|npm run ci||Execute linter, tests and production builds|
Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.
Thanks to all contributors and their support.
If you have an idea or you want to do something, tell me or just do it! I'm always happy to hear your feedback!
Code and documentation copyright 2020 the authors. Code released under the MIT License.