|
| 1 | +# DEVELOPER |
| 2 | + |
1 | 3 | ## Quick start
|
| 4 | + |
2 | 5 | First clone this repo: `git clone https://github.com/jeroenouw/AngularMaterialFirebase.git`.
|
3 | 6 | Change directory to this project
|
4 | 7 | Run `npm install` to install all the dependencies.
|
5 |
| -Run `npm start` to run this project. This will run with the AoT Compiler. |
| 8 | +Run `npm start` to run this project. This will run with the AoT Compiler. |
6 | 9 | Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
|
7 | 10 |
|
8 | 11 | ## Development
|
| 12 | + |
9 | 13 | For own projects please use different keys in `src/app/app.component.ts`:
|
10 |
| -``` firebase.initializeApp({ ``` |
11 |
| -``` // For other projects use different keys``` |
12 |
| -``` apiKey: '[YOUR_KEY]',``` |
13 |
| -``` authDomain: '[YOUR_KEY]',``` |
14 |
| -``` databaseURL: '[YOUR_KEY]',``` |
15 |
| -``` projectId: '[YOUR_KEY]',``` |
16 |
| -``` storageBucket: '[YOUR_KEY]',``` |
17 |
| -``` messagingSenderId: '[YOUR_KEY]'``` |
18 |
| -``` });``` |
19 |
| - |
| 14 | + |
| 15 | +```typescript |
| 16 | + |
| 17 | +firebase.initializeApp({ |
| 18 | + // For other projects use different keys |
| 19 | + apiKey: '[YOUR_KEY]', |
| 20 | + authDomain: '[YOUR_KEY]', |
| 21 | + databaseURL: '[YOUR_KEY]', |
| 22 | + projectId: '[YOUR_KEY]', |
| 23 | + storageBucket: '[YOUR_KEY]', |
| 24 | + messagingSenderId: '[YOUR_KEY]' |
| 25 | +}); |
| 26 | + |
| 27 | +``` |
| 28 | + |
20 | 29 | 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.
|
21 | 30 |
|
22 | 31 | To build the development environment, run `npm run dist`.
|
23 | 32 |
|
24 | 33 | ## Production
|
25 |
| -To build the default production environment, run `npm run prod`. This will run with the AoT Compiler. |
26 |
| -To build the production environment with reduced file size, run `npm run prod:opt` (Takes extra time to build with build optimizer). |
27 | 34 |
|
| 35 | +To build the production environment, run `npm run prod`. This will run with the AoT Compiler. |
| 36 | +To build the production environment without hashing in the files, run `npm run prod:hashless`. This will give packages without a hash. |
| 37 | +To build the production environment with reduced file size, run `npm run prod:opt` (Takes extra time to build with build optimizer). |
0 commit comments