Skip to content

Commit c8eaa60

Browse files
Ismaestroiramos
authored andcommitted
feat(firebase): add firebase!
1 parent 977c261 commit c8eaa60

65 files changed

Lines changed: 1490 additions & 791 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Example app with Angular 7 + Angular CLI + Angular Material + Docker + Angular Example Library
1+
# Example app with Angular 7 + Angular CLI + Angular Material + Firebase
22

3-
> ### Base project made with much :heart: . Contains CRUD, patterns, generated library, etc.
3+
> ### Base project made with much :heart: . Contains CRUD, patterns, generated library, and much more!
44
55
![travis](https://travis-ci.org/Ismaestro/angular7-example-app.svg?branch=master)
66
[![Coverage Status](https://coveralls.io/repos/github/Ismaestro/angular7-example-app/badge.svg?branch=master)](https://coveralls.io/github/Ismaestro/angular7-example-app?branch=master)
@@ -70,19 +70,19 @@ npm run ci | Execute linter and tests
7070
npm run extract | Generate all json files with the translations in assets folder
7171
npm run translate | Translate all keys remaining using Google Translate and using English language as the origin
7272
npm run deploy | Build the app and deploy dist folder to Github pages (angular-cli-ghpages) (fork to do this and remove CNAME file)
73-
npm run bundle-report | Build and run webpack-bundle-analyzer over stats json, really cool :)
73+
npm run bundle-report | Build and run webpack-bundle-analyzer over stats json
7474
npm run release | Create a new release using standard-version
7575
npm run docker | Build the docker image and run the container
7676
npm run update | Update the project dependencies with ng update
7777

7878
## Features
7979

80-
* CRUD: create, update and remove heroes
80+
* CRUD: create, update and remove heroes with Firebase!
8181
* Search bar, to look for heroes
8282
* Custom loading page
8383
* Modal and toasts (snakbar)!
8484
* Internationalization with ng-translate and ngx-translate-extract. Also use cache busting for translation files with [webpack translate loader](https://github.com/ngx-translate/http-loader#angular-cliwebpack-translateloader-example)
85-
* Automatic translate script with Google Translate :D
85+
* Automatic translate script with Google Translate oO
8686
* Lazy loading modules
8787
* Service Workers
8888
* Dynamic Imports
@@ -106,6 +106,10 @@ npm run update | Update the project dependencies with ng update
106106
* ES6 Promises and Observables
107107
* Following the [best practices](https://angular.io/guide/styleguide)!
108108

109+
<p align="center">
110+
<a href='https://ko-fi.com/S6S5LMVR' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://az743702.vo.msecnd.net/cdn/kofi4.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a> :smile:
111+
</p>
112+
109113
## Docker
110114

111115
You can build the image and run the container with Docker. The configuration is in the nginx folder if you want to change it.
@@ -127,9 +131,9 @@ We use Travis CI to run this tasks in order:
127131
- Please see the CONTRIBUTING file for guidelines.
128132
- Create **pull requests, submit bugs, suggest new features** or documentation updates :wrench:
129133

130-
## Server
134+
## Firebase
131135

132-
This repo is using [a minimal app](https://github.com/Ismaestro/nodejs-example-app) in NodeJS deployed on Heroku and using PostGreSQL, to create, modify and delete heroes.
136+
This repo is using Firebase. We use Cloud Firestore and Cloud Storage to handle CRUD operations over the heroes and to store their images.
133137

134138
## License
135139

angular.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@
4343
}
4444
],
4545
"styles": [
46-
{
47-
"input": "node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
48-
},
46+
"node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
4947
"src/assets/css/reset.css",
5048
"src/assets/css/loading.css",
5149
"src/app/styles/global.scss"
@@ -111,7 +109,7 @@
111109
],
112110
"styles": [
113111
{
114-
"input": "node_modules/@angular/material/prebuilt-themes/indigo-pink.css"
112+
"input": "node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css"
115113
},
116114
"src/assets/css/reset.css",
117115
"src/assets/css/loading.css",
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {HeroesListPage} from './heroes-list-page';
2+
import {browser} from 'protractor';
23

3-
describe('Home page', function () {
4+
describe('Heroes list page', function () {
45
let page;
56

67
beforeEach(() => {
@@ -9,6 +10,7 @@ describe('Home page', function () {
910

1011
it('should contains equal or more heroes than default ones', () => {
1112
HeroesListPage.navigateTo();
13+
browser.driver.sleep(2000);
1214
expect<any>(HeroesListPage.getNumberHeroes()).toBeGreaterThanOrEqual(8);
1315
});
1416
});

e2e/src/shared/home/home-page.e2e-spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {HomePage} from './home-page';
22
import {AppConfig} from '../../../../src/app/configs/app.config';
3+
import {browser} from 'protractor';
34

45
describe('Home page', function () {
56
let page;
@@ -10,6 +11,7 @@ describe('Home page', function () {
1011

1112
it('should contains heroes limit', () => {
1213
HomePage.navigateTo();
14+
browser.driver.sleep(2000);
1315
expect<any>(HomePage.getNumberHeroes()).toBe(AppConfig.topHeroesLimit);
1416
});
1517
});

0 commit comments

Comments
 (0)