<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Koen (K.W.H.J.) van der Kamp</title>
    <description>The latest articles on DEV Community by Koen (K.W.H.J.) van der Kamp (@kwhjvdkamp).</description>
    <link>https://dev.to/kwhjvdkamp</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F372131%2F62585a25-4511-4217-b97c-69a08910ddeb.png</url>
      <title>DEV Community: Koen (K.W.H.J.) van der Kamp</title>
      <link>https://dev.to/kwhjvdkamp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kwhjvdkamp"/>
    <language>en</language>
    <item>
      <title>Terminal message: "bash: syntax error near unexpected token '&amp;' in Visual Studio Code"</title>
      <dc:creator>Koen (K.W.H.J.) van der Kamp</dc:creator>
      <pubDate>Mon, 07 Jun 2021 09:14:24 +0000</pubDate>
      <link>https://dev.to/kwhjvdkamp/terminal-message-bash-syntax-error-near-unexpected-token-in-visual-studio-code-37a9</link>
      <guid>https://dev.to/kwhjvdkamp/terminal-message-bash-syntax-error-near-unexpected-token-in-visual-studio-code-37a9</guid>
      <description>&lt;p&gt;The reason you arrived at this page, is caused very likely, you are hampered by the fact, Visual Studio Code surprised you with a message, such as mentioned in the title; &lt;em&gt;...unexpected token '&amp;amp;' in Visual Studio Code...&lt;/em&gt; .&lt;/p&gt;

&lt;h2&gt;
  
  
  Why?
&lt;/h2&gt;

&lt;p&gt;Most likely, you are not aware of the fact (as I was due to upgrading to python 3.9.5 64-bit) that the setting &lt;em&gt;terminal.integrated.shell.windows&lt;/em&gt; has been deprecated. It seems it has been replaced by &lt;strong&gt;terminal.integrated.automationShell.windows&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to fix!
&lt;/h2&gt;

&lt;p&gt;Pick up your path to your favorite terminal and map it to &lt;strong&gt;terminal.integrated.automationShell.windows&lt;/strong&gt; like&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xS_Ck-aN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s8ed1damxz6pdfwtuc7y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xS_Ck-aN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s8ed1damxz6pdfwtuc7y.png" alt="setting in settings.json"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Result
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EjvSCUFu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/em15k27zb5xevq3lzpk1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EjvSCUFu--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/em15k27zb5xevq3lzpk1.png" alt="three ways of script execution"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PS: It it always a wise idea to recheck your environment variables if they are set to your desired python version. For what ever reason they still might point to a previous one.&lt;/p&gt;

</description>
      <category>python</category>
      <category>vscode</category>
      <category>bash</category>
    </item>
    <item>
      <title>The collection reference method *.valueChanges(...) visualized (and explained)!</title>
      <dc:creator>Koen (K.W.H.J.) van der Kamp</dc:creator>
      <pubDate>Thu, 27 May 2021 09:15:29 +0000</pubDate>
      <link>https://dev.to/kwhjvdkamp/the-collection-method-valuechanges-visualized-and-explained-5g13</link>
      <guid>https://dev.to/kwhjvdkamp/the-collection-method-valuechanges-visualized-and-explained-5g13</guid>
      <description>&lt;p&gt;Context &lt;br&gt;
Building a kanban board at workshop at Google I/O 2021 &lt;a href="https://developers.google.com/codelabs/building-a-web-app-with-angular-and-firebase#7" rel="noopener noreferrer"&gt;Building a web application with Angular and Firebase&lt;/a&gt; presented by Mark Thompson. &lt;/p&gt;

&lt;p&gt;| Angular 12.0.1 | firebase 9.11.0 | Node 14.17 |&lt;/p&gt;

&lt;p&gt;Taking Mark's instruction a bit further; to achieve drag&amp;amp;drop in a bit more realistic situation, calling the store in a service asynchronously. To achieve this status, I stumbled on the &lt;strong&gt;.valueChanges(...)&lt;/strong&gt; method.&lt;/p&gt;

&lt;p&gt;The internal firestore documents explains the working of this &lt;strong&gt;.valueChanges(...)&lt;/strong&gt; method as it listen to all documents in the retrieved collection and queries this list as an Observable. &lt;br&gt;
This method provides the option of setting the &lt;strong&gt;idField&lt;/strong&gt;. When the &lt;strong&gt;idField&lt;/strong&gt; option is provided like &lt;br&gt;
&lt;strong&gt;.valueChanges({idField: '&amp;lt;a-property-of-the-document'})&lt;/strong&gt; it means that the document ID (actually the document's name) will be mapped to the provided property being one of the properties within the document-object.&lt;/p&gt;

&lt;p&gt;Know the construction of the document, in this case &lt;strong&gt;document (ITask) = { id?: string; title?:string; description?: string'; }&lt;/strong&gt;. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnam2qdj6ytz2uj0jpp6a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnam2qdj6ytz2uj0jpp6a.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
The interface used to obtain documents within the collection (must) contain an optional property .&lt;/p&gt;

&lt;p&gt;When calling the &lt;strong&gt;.valueChanges(...)&lt;/strong&gt; method with a provided &lt;strong&gt;idField&lt;/strong&gt;, which is set to one of the provided properties as stated, internally, the ID (actually the document's name) of that document is mapped to the 'provided'-property within the document object. &lt;br&gt;
See&lt;br&gt;
gif&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Firrue3pn7mjiztkso6ir.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Firrue3pn7mjiztkso6ir.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The service&lt;br&gt;
Notice: No need of using &lt;em&gt;snapshotChanges()&lt;/em&gt; as stated elsewhere.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdht23mvjv7ag9mrxwfti.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdht23mvjv7ag9mrxwfti.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>firebase</category>
      <category>firestore</category>
      <category>angular</category>
      <category>typescript</category>
    </item>
    <item>
      <title>Firebase Emulators Setup - Tips to overcome trouble, hurdles and pitfalls to get them up, running and data resyncing</title>
      <dc:creator>Koen (K.W.H.J.) van der Kamp</dc:creator>
      <pubDate>Sat, 01 May 2021 23:20:15 +0000</pubDate>
      <link>https://dev.to/kwhjvdkamp/firebase-emulators-sharing-trouble-hurdles-and-pitfalls-to-get-them-up-and-running-34io</link>
      <guid>https://dev.to/kwhjvdkamp/firebase-emulators-sharing-trouble-hurdles-and-pitfalls-to-get-them-up-and-running-34io</guid>
      <description>&lt;h2&gt;
  
  
  If you do not have any experience with the implementation of firebase emulator functionality, start at step 1.
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Firebase emulators setup. Sounds easy ...&lt;/li&gt;
&lt;li&gt;Firebase emulator UI. What should I see ...&lt;/li&gt;
&lt;li&gt;Frontend onto ‘firestore emulator’. Surprisingly no data ... 
Restarting, trouble! Ports occupied! Now what? Solution&lt;/li&gt;
&lt;li&gt;Copy online database content into the local environment. So far, so ...? Finally ...!&lt;/li&gt;
&lt;li&gt;Using the local environment data, anytime, just one command?&lt;/li&gt;
&lt;li&gt;Resync local environment with online database content...&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Preface
&lt;/h3&gt;

&lt;p&gt;The process described is performed with an existing working Angular app on top of Firebase Serverless Services to present online stored data. From ‘cost- and efficiency perspective’ this should and can be improved. &lt;/p&gt;

&lt;p&gt;Current status at time of writing&lt;br&gt;
Frontend&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        "@angular/core": "^11.2.10",
        "@angular/fire": "^6.1.4",
        "firebase": "^8.4.1",
        "firebase-functions": "^3.13.2",
        "firebaseui": "^4.8.0",
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Functions&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        "firebase": "^8.4.1",
        "firebase-admin": "^9.6.0",
        "firebase-functions": "^3.13.2",
        "firebase-tools": "^9.10.0",
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I am playing with Visual Studio Code.&lt;br&gt;
My terminal of preference is Git Bash &lt;code&gt;$&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Be aware! Getting the firebase emulator functionality running locally, Java functionality from Oracle is required. If you, for whatever reason, do not have Java running ‘under the hood’ figure this out in advance. See &lt;a href="https://firebase.google.com/docs/emulator-suite/install_and_configure" rel="noopener noreferrer"&gt;Install, configure and integrate Local Emulator Suite&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  1. Firebase emulators setup
&lt;/h3&gt;

&lt;p&gt;Open a terminal and navigate to the project's root folder. &lt;br&gt;
Type &lt;code&gt;$ firebase init emulators&lt;/code&gt;&lt;br&gt;
On the terminal, the emulators setup questions are popping up. Questions asking you to select the emulators of your choice. If you are not familiar start with the Functions -, Firestore - and Hosting Emulator.&lt;/p&gt;

&lt;p&gt;Next, the selected emulators with their configured port numbers are presented on which they will run. Download your emulators. If, at this stage the emulators aren’t downloaded, it will happen automatically during the emulators execution step next, don’t worry. Close the terminal.&lt;/p&gt;
&lt;h3&gt;
  
  
  2. Firebase Emulator UI
&lt;/h3&gt;

&lt;p&gt;With the Emulators in place, open another terminal, at the level of your project's root folder. For me this is ~/functions/~. &lt;br&gt;
Type &lt;code&gt;$ firebase emulators:start&lt;/code&gt;&lt;br&gt;
A schema pops up with information about the installed emulators.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;On one of my machines a Java dialog pops up telling me on which port the FIRESTORE_EMULATOR_HOST is ‘living’, whereas on another device not.&lt;/em&gt; &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftp4yyn6mli7mzkpicb98.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftp4yyn6mli7mzkpicb98.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;em&gt;On both devices, however on the Visual Studio Code terminal the firebase emulators are announced ‘ready’.&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz3k39calovj2amdyvo50.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz3k39calovj2amdyvo50.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;em&gt;Notice the port numbers for the firestore emulator host e.g. may differ at your side.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;If you don't remember the port numbers configured, find them in the firebase.json file.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjtge4gh57fxn8dsevs0h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjtge4gh57fxn8dsevs0h.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
View the firebase emulator UI in your favorite browser.&lt;/p&gt;

&lt;p&gt;In most case, especially if you start the emulator functionality for the first time, the tables at the [Authentication] and [Firestore] tabs are empty. Data for local use seems not available!&lt;/p&gt;

&lt;p&gt;Downloading your online data into your local environment will be your next challenge. &lt;/p&gt;

&lt;p&gt;But first, you need to hook your frontend onto the host, the ‘firestore emulator’.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Hook frontend onto the ‘firestore emulator’ host
&lt;/h3&gt;

&lt;p&gt;First, go to file &lt;code&gt;app.module.ts&lt;/code&gt; and find the following import.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Import {
    AngularFirestoreModule
} from '@angular/fire/firestore';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Load the desired ‘settings’ and alias them. It should look like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Import {
    AngularFirestoreModule,
    SETTINGS as FIRESTORE_SETTINGS,
} from '@angular/fire/firestore';
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, go to the providers array and add a new provider-set as follows&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        {
            provide: FIRESTORE_SETTINGS,
            useValue: environment.emulator ? {
                host: 'localhost:8080',
                ssl: false
            } : undefined
        },
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice the provider is going to ask your app about the emulator property in the &lt;code&gt;environment.ts&lt;/code&gt; file and it ask if the emulator-property is set to ‘true’. &lt;br&gt;
Notice that at this port during configuration the CLI has been added. &lt;/p&gt;

&lt;p&gt;No emulator property is currently set. Add it to the environment object in &lt;code&gt;environment.ts&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Export const environment = {
    production: false,
    emulator: true,
    firebase: {
        apiKey:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Notice that in the &lt;code&gt;environment.prod.ts&lt;/code&gt; also an environment object exists. If you omit the emulator property in this object with the value set to 'false' you will end up with an error during &lt;code&gt;$ ng build --prod&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Now, when you run command &lt;code&gt;$ ng serve&lt;/code&gt; the &lt;code&gt;environment.ts&lt;/code&gt; file will be read and it will run against the local emulators. Otherwise when running command &lt;code&gt;$ ng build --prod&lt;/code&gt; the &lt;code&gt;environment.prod.ts&lt;/code&gt; file is read and it will run against the online firestore instance.&lt;/p&gt;

&lt;p&gt;Coming to this stage, when running command &lt;code&gt;$ ng serve&lt;/code&gt;, with the firebase emulators still running, the dashboard (localhost:8080 | &lt;a href="http://localhost:4000/firestore" rel="noopener noreferrer"&gt;http://localhost:4000/firestore&lt;/a&gt; - Emulator UI) is showing empty tables. &lt;/p&gt;

&lt;h4&gt;
  
  
  Two hurdles you might face here.
&lt;/h4&gt;

&lt;p&gt;It is possible, being busy with hooking up your frontend to the firestore emulator host, you accidently have terminated your terminal, expecting you ‘switched off’ those running emulators. Your wrong! Those emulators are still running! The other way around, because data is not shown might give you the idea to re-start those emulators thru switching them off. Switching them off is not simply closing and re-opening a terminal and trying to start those emulators again.&lt;/p&gt;

&lt;p&gt;View the next two screenshots. The first one is my frontend running against my online database and the second one running against the firestore emulator during my first attempt of getting those emulators properly running. No data!&lt;/p&gt;

&lt;p&gt;Keep in mind at this stage in this story, we still did not learn how to get the data stored into the local emulator environment.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr7dl52t6wrqfx0xk4n1q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr7dl52t6wrqfx0xk4n1q.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fobn3sp22j4pvp6hjjgyt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fobn3sp22j4pvp6hjjgyt.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Don’t go, don’t stop! Keep on reading, solve these hurdles!&lt;/p&gt;

&lt;p&gt;In case, for whatever reason, the terminal on which the firebase emulators were running, has been closed and you are trying to re-start them thru opening a separate terminal executing command &lt;code&gt;$ firebase emulators:start&lt;/code&gt; or &lt;code&gt;$ firebase emulators:start --only firestore&lt;/code&gt;, most likely you expect to get back on track again without trouble. Nope, you will, very likely, still having trouble, don’t worry!&lt;/p&gt;

&lt;p&gt;Running command &lt;code&gt;$ firebase emulators:start --only firestore&lt;/code&gt; the terminal will most likely tell the firebase emulators can’t be restarted because some ports are in use. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftd9x3beivrngeubik14l.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftd9x3beivrngeubik14l.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
also at the dashboard a dialog has popped up telling you about a disconnection with a rather misleading instruction. &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frermuumnxtwh8f4gb47h.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frermuumnxtwh8f4gb47h.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  The ports are in use!
&lt;/h4&gt;

&lt;p&gt;Trouble? Actually not! &lt;/p&gt;

&lt;p&gt;Well, sit back, grab a mug of coffee or another relief, take a deep breath and continue!&lt;/p&gt;

&lt;p&gt;Those ports ‘in use’ needs to be released, but how? &lt;/p&gt;

&lt;p&gt;Here is where you get a bit frustrated because you might feel you are send off into the labyrinth of Google's digital swamp.&lt;/p&gt;

&lt;p&gt;Just for learning purposes, old school stuff bubbles up. Windows &lt;code&gt;netstat&lt;/code&gt; service. Open a Windows (or Powershell) prompt. &lt;br&gt;
Type &lt;code&gt;(PS) C:\&amp;gt;netstat -ano&lt;/code&gt;&lt;br&gt;
A large list of port numbers are flashing by. &lt;/p&gt;

&lt;p&gt;Search for the desired port numbers. Remember, those port numbers which are presented to you at the stage of the firebase emulators setup earlier on or the ones stated in the error messages.&lt;br&gt;
Type &lt;code&gt;(PS) C:\&amp;gt;taskkill /f /im [PID Firestore Emulator Host]&lt;/code&gt; &lt;br&gt;
Likely also the other one on which the emulator UI is running.&lt;br&gt;
Type &lt;code&gt;(PS) C:\&amp;gt;taskkill /f /im [PID Firestore Emulator UI]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Figbzty399kmnjevoqkvr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Figbzty399kmnjevoqkvr.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
At this stage, both ports are released. &lt;/p&gt;

&lt;h4&gt;
  
  
  Hurdles
&lt;/h4&gt;

&lt;p&gt;You did need another service from which you hardly knew its existence I presume (something from the old ages at the time the earth crust hasn’t yet cooled down, ha), it needs at least two commands and the used of another console. &lt;/p&gt;

&lt;p&gt;Luckily, the old school days are over, new functionality arrived.&lt;br&gt;
Since we are working on an Angular frontend on top of a firebase framework, we know better. We have learned about availability of many packages. Gamble, there might one be available able to release ports. &lt;/p&gt;

&lt;p&gt;Yes! Several, for instance: &lt;a href="https://www.npmjs.com/package/kill-port" rel="noopener noreferrer"&gt;Kill ports&lt;/a&gt;. This one needs only a few seconds to read! It is simple tool and able to release several closed ports at once. Nice! &lt;/p&gt;

&lt;p&gt;Instead of the netstat distraction, use command &lt;code&gt;$ npx kill-port --port X, Y&lt;/code&gt; or &lt;code&gt;$ npx kill-port Z, P&lt;/code&gt; (X, Y, Z and P are port numbers, in this tutorial 4000, 8080). &lt;/p&gt;

&lt;p&gt;Wait, are we now back on track again? No, still no local data available! &lt;/p&gt;

&lt;h3&gt;
  
  
  4. Copy online database content into local environment
&lt;/h3&gt;

&lt;p&gt;We are coming close! First, we need to overcome another challenge!&lt;/p&gt;

&lt;p&gt;Arriving at this stage, it should actually be mentioned, close everything in such a way as if you are starting fresh in the morning, having your device completely switched-off for the night (clean desk policy). However, if you did not, continue and face what happens. Important learnings!&lt;/p&gt;

&lt;p&gt;We need another package for exporting from the online database and importing that data into the local environment. We are going to make use the &lt;a href="https://www.npmjs.com/package/node-firestore-import-export" rel="noopener noreferrer"&gt;node-firestore-import-export&lt;/a&gt; package. This package has excellent documentation. &lt;/p&gt;

&lt;p&gt;This package helps to challenge a four steps process exporting and importing data. &lt;/p&gt;

&lt;p&gt;At first, exporting the online database content, then, starting only the firestore emulator, next, telling the system to use the correct host port number and at last, importing the data into the localhost emulator environment. &lt;/p&gt;

&lt;h4&gt;
  
  
  Another hurdle
&lt;/h4&gt;

&lt;p&gt;Before you are being eligible to use the export and import functionality from the just installed package you need the allowance from your online firebase environment. &lt;/p&gt;

&lt;p&gt;Go into your online firebase console and download a service account key. Keep in mind! This key is basically an admin key for your entire app. Do NOT store this key in any version control system whatsoever. Take care to 'ignore' the container of the key it self in your version control system.&lt;/p&gt;

&lt;p&gt;The service-account credentials can be found under &lt;strong&gt;Project Settings &amp;gt; Service Accounts&lt;/strong&gt;. Hit link &lt;strong&gt;Generate new private key&lt;/strong&gt;, download that JSON file and keep it in a private spot. &lt;/p&gt;

&lt;p&gt;Once you have the service-account key (json file) properly stored, open a new terminal and install the node import-export package. Type &lt;code&gt;$ npm install -g node-firestore-import-export&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Once installed, you finally are eligible to use the export - and import functionality. Open a new terminal and go to your functions level again. Keep in mind the spot (sub level) where the account-service key file has been stored.&lt;br&gt;&lt;br&gt;
Type &lt;code&gt;$ firestore-export --accountCredentials &amp;lt;(path-to-your-account-service-file/)your-account-service.json&amp;gt; --backupFile &amp;lt;(another-path-to-store-output/)your-output-name.json&amp;gt;&lt;/code&gt; &lt;br&gt;
Notice you are allowed to change names for your service key and/of backup file.&lt;br&gt;
Notice the 'your-output-name.json' file is actually the reflection of your online database. Consider it as your local test database.&lt;/p&gt;

&lt;p&gt;If everything went well, you most likely end up with a green line in your terminal telling you &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa9zz31t6en73nqe4kaxb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa9zz31t6en73nqe4kaxb.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next, type &lt;code&gt;$ firebase emulators:start --only firestore&lt;/code&gt;&lt;br&gt;
It is, again, very likely, you’ll met trouble. &lt;/p&gt;

&lt;p&gt;It seems, again, you are not able to start the firestore emulator host because the system is telling you the firestore emulator host is (still) in use. &lt;/p&gt;

&lt;p&gt;Head back to the instructions how to release that specific port. Best practice, release those ports on a different terminal. If you are still in the same flow, to the terminal on which the export command has been executed. &lt;/p&gt;

&lt;p&gt;In case you did close the terminal, VS Code or quit for the day anyway, you do need to repeat the export step again.&lt;/p&gt;

&lt;p&gt;So, the 2nd step in this process is retrieving data from online and should end up like this&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flwcmgzcsc54dl6ruh4g6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flwcmgzcsc54dl6ruh4g6.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now with having ONLY the firestore emulator running, open another terminal and tell the system on which port number the firestore emulator host is living (3rd step). &lt;br&gt;
Type &lt;code&gt;$ export FIRESTORE_EMULATOR_HOST=0.0.0.0:&amp;lt;your-firestore-host-port-number&amp;gt;&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;Finally import the downloaded data into the local environment. Type &lt;code&gt;$ firestore-import --accountCredentials &amp;lt;(path-to-your-account-service-file/)your-account-service.json&amp;gt; --backupFile &amp;lt;(path-to-you-backup-file/)your-output-name.json&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Execute the import command and answer the question&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6t8fjep3h5s7gjei1gpy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6t8fjep3h5s7gjei1gpy.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
Hit ‘[y]’ and wait!&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr7ojf116uy3x569x7fje.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr7ojf116uy3x569x7fje.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We have done it, sure!&lt;/p&gt;

&lt;p&gt;Go to your dashboard and watch! Most likely you will see a progress bar telling you the process being busy with loading the imported localhost data. &lt;/p&gt;

&lt;p&gt;Finally, the data is there! &lt;/p&gt;

&lt;p&gt;Yippy! Really yippy? Actually not! You are not save, yet! &lt;/p&gt;

&lt;h4&gt;
  
  
  Instead, the biggest pitfall is on the rise!
&lt;/h4&gt;

&lt;p&gt;At this stage, it is possible, in whatever flow you have performed this flow, up to this stage, you accidently did something wrong. Possibly a wrong firestore host port number has been used somewhere, for instance? &lt;/p&gt;

&lt;p&gt;Check your host port stated at the terminal after have executing the command &lt;code&gt;$ firebase emulators:start&lt;/code&gt;. Check also, in case a Java console dialog is visible at your status bar if the correct port number is printed, or if the correct port number is written in your &lt;code&gt;angular.json&lt;/code&gt; and if the correct number is written in your &lt;code&gt;app.module.ts&lt;/code&gt; (provider section). &lt;/p&gt;

&lt;p&gt;Check all those spots for the correct number(s) otherwise you most likely get the following errors presented. Several ones for all entities exported which need to be imported into the local environment.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwq1zgtqx7f8okmjh1ey.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwq1zgtqx7f8okmjh1ey.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Having luck? No series of errors with code 14? &lt;/p&gt;

&lt;p&gt;&lt;em&gt;In case a list of errors are flashing by, one error object for each of the 'to be importing' entities: &lt;br&gt;
&lt;code&gt;{ ..., code: 14, details: 'No connection established', ...}&lt;/code&gt;&lt;br&gt;
It means, the underlying Java functionality is not running!&lt;br&gt;
So, you have to start all over again. &lt;br&gt;
Start again with: &lt;code&gt;$ firebase emulators:start --only firestore&lt;/code&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Everything went well! Ha, ha, as said, you know already what is coming up, 'you are still not there, yet'! &lt;/p&gt;

&lt;p&gt;Notice once you have added all the data into your local environment and you have been busy for a long time now, it is time for whatever happy hour you need. You have quit for the day! &lt;/p&gt;

&lt;p&gt;Whatever you did, at restart, disappointment is on the raise. &lt;/p&gt;

&lt;p&gt;Starting your device, starting your development environment, you did everything right, but data on the dashboard is not there, it’s gone! You’ll have to start all over again. Facing all pitfalls once again. Keep this in mind! &lt;/p&gt;

&lt;p&gt;Finally, stay strong for a minute or two, then, only then you’ll be save, promised!&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Using local environment data, anytime, just ONE command?
&lt;/h3&gt;

&lt;p&gt;Luckily, firebase does have an option to back-up the localhost emulator data. Working in the same flow, it is likely the firestore emulator is still running and having all the data in place. If not, get back and try to reach this stage again. Open a separate terminal.&lt;br&gt;
Type &lt;code&gt;$ firebase emulators:export ./emulators.backup&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;What this command does is, it creates a folder called ~/emulators.backup/&lt;em&gt;. In this case just below your root level which is apparently your ~/functions/&lt;/em&gt; folder. At this stage, all the data, which for a second or two ago lived in memory, is stored in a certain kind of an unsupported text encoding file. Notice you were able to change the name into whatever you wanted.&lt;/p&gt;

&lt;p&gt;I think it is not worthwhile to store this 'container' (emulators.backup) incl. content into a version control system, it should be ignore!&lt;/p&gt;

&lt;p&gt;Now, only now, you are save! Really? Close everything, even your device, if needed. Come back at whenever time of your preference, get back on track, just open a terminal at your ~/functions/* level.&lt;/p&gt;

&lt;p&gt;No, no, not simply executing the 'emulators.backup'. If you do, you will be blocked!&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F97daqtsqx4ru9dssgngt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F97daqtsqx4ru9dssgngt.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, first restarting the firebase emulator is needed.&lt;br&gt;
Type &lt;code&gt;$ firebase emulators:start --only firestore&lt;/code&gt;&lt;br&gt;
Thereafter ON ANOTHER TERMINAL&lt;br&gt;
Type &lt;code&gt;$ firebase emulators:start --import=./emulators.backup&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;These are two commands to remember.&lt;br&gt;
But there is still another factor to also having some intrinsic value to be mentioned. Know on which port your local environment is running. If you are new to Firebase Emulators, (as I was a little while ago), you expect your frontend is running on localhost:4200, right!&lt;/p&gt;

&lt;p&gt;In case you have 'restarted' (everyhting has been shut down, meaning you are a bit ignorant and started your development environment with &lt;code&gt;$ ng serve&lt;/code&gt; right away and remembered on time to start your 'middle ware' as well (oké executing it on a different terminal &lt;code&gt;$ firebase emulators:start --import=./emulators.backup&lt;/code&gt;), you might expect data on your frontend. No, it isn't there. Don't be tricked! &lt;/p&gt;

&lt;p&gt;Notice, there is not a live 'connection' between those two. Look into the message when having executed &lt;code&gt;$ firebase emulators:start --import=./emulators.backup&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;Notice that you are familiar with having your frontend running on port 4200. It is simple, you hosting port is mentioned in the output. So, changing the port number (from localhost:4200 into local:5000), does show data. However, you're busy with developing, you will see the latest 'production' (from your ~/dist/), and not your latest achievements. Don't be surprised!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffhlnewdw9xorq9n901e3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffhlnewdw9xorq9n901e3.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Notice, using firebase emulators as described, you might see a warning during execution of &lt;code&gt;$ firebase emulators:start --import=./emulators.backup&lt;/code&gt;. I haven't figured out yet why this warning elevates. The warning is not very descriptive, it says &lt;br&gt;
&lt;code&gt;!  emulators: It seems that you are running multiple instances of the emulator suite for project &amp;lt;your project&amp;gt;. This may result in unexpected behavior.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Also, it seems somewhat of a 'contradiction in terms' whereas you think about restarting firebase emulators you instantaneously receive a blocking message about 'ports in use'. How is it possible to get simultaneously running multiple instances of the emulator suite? I don't know yet! If somebody knows the answer, share it as a discussion item.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Resync local environment with online database content
&lt;/h3&gt;

&lt;p&gt;Know in advance if port(s) are 'in use' (meaning if Java functionality 'under-the-hood' is running)!&lt;/p&gt;

&lt;p&gt;I presume, you started fresh on a sunny bright morning or whatever day part of your preference on whatever spot you like (meaning just setting-up a new session).&lt;/p&gt;

&lt;p&gt;Go on a terminal to the root of your 'functions' project&lt;br&gt;
Type &lt;code&gt;$ cd functions&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Best practice, release occupied ports anyway, take the long road! Actually this means I contradict myself a bit, from own experience, if you take the short cut, which I tried several times by now, you will be surprised as I was, with an empty local environment (no data). It isn't straightforward in some way, as instructed somewhere else; for resyncing you only need to execute the import statement calling from the &lt;code&gt;~/emulators.backup/&lt;/code&gt; folder.&lt;/p&gt;

&lt;p&gt;So, from my own experiences so far, resyncing, actually means a repeat of these steps.&lt;/p&gt;

&lt;h4&gt;
  
  
  Release 'ports-in-use' (
&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;I don't like the word 'kill' in this perspective. Live ain't not simply a game, I am not a favorite of gamification everything&lt;/em&gt;&lt;br&gt;
Type &lt;code&gt;$ npx kill-port --port X,Y (or $ npx kill-port X,Y)&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Restart the Java engine
&lt;/h4&gt;

&lt;p&gt;Type &lt;code&gt;$ firebase emulators:start --only firestore&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Open another terminal
&lt;/h4&gt;

&lt;p&gt;Type &lt;code&gt;$ cd functions&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Export your latest online database content
&lt;/h4&gt;

&lt;p&gt;Type &lt;code&gt;$ firestore-export --accountCredentials &amp;lt;(path-to-your-account-service-file/)your-account-service.json&amp;gt; --backupFile &amp;lt;(path-to-you-backup-file/)your-output-name.json&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Set correct firebase host port
&lt;/h4&gt;

&lt;p&gt;Notice you are still on the same terminal where the export command has been executed!&lt;br&gt;
Type &lt;code&gt;$ export FIRESTORE_EMULATOR_HOST=0.0.0.0:8080&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Import the latest exported content from your memory
&lt;/h4&gt;

&lt;p&gt;Notice you are still on the same terminal where the export - and correct port commands has been executed!&lt;br&gt;
Type &lt;code&gt;$ firestore-import --accountCredentials &amp;lt;(path-to-your-account-service-file/)your-account-service.json&amp;gt; --backupFile &amp;lt;(path-to-you-backup-file/)your-output-name.json&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;h4&gt;
  
  
  Usage
&lt;/h4&gt;

&lt;p&gt;Notice you are still on the same terminal where the export -, correct port - and import commands has been executed!&lt;br&gt;
Type &lt;code&gt;$ firebase emulators:export ./emulators.backup&lt;/code&gt;&lt;br&gt;
Notice&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flhpqavk0zzv9jnvwz776.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flhpqavk0zzv9jnvwz776.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
Hit [y] and [Enter]&lt;br&gt;
See what happens! Your data has been renewed!&lt;/p&gt;

&lt;p&gt;It is fun, having the emulators dashboard open at the same time of execution. It is magic! That’s what it is!&lt;/p&gt;

&lt;p&gt;Used sources&lt;br&gt;
&lt;a href="https://jsmobiledev.com/article/firebase-emulator" rel="noopener noreferrer"&gt;How to set up Firebase Emulator for local development (Jorge Vergara)&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.benmvp.com/blog/kill-process-running-port/" rel="noopener noreferrer"&gt;Easily kill a process running on a port (Ben Ilegbodu)&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.youtube.com/watch?v=pkgvFNPdiEs" rel="noopener noreferrer"&gt;The Local Firebase Emulator UI in 15 minutes (David East)&lt;/a&gt;&lt;/p&gt;

</description>
      <category>firebase</category>
      <category>angular</category>
      <category>firestore</category>
      <category>emulators</category>
    </item>
    <item>
      <title>Follow up on "Never leave your email address raw in the mailto link!" </title>
      <dc:creator>Koen (K.W.H.J.) van der Kamp</dc:creator>
      <pubDate>Thu, 22 Apr 2021 13:26:33 +0000</pubDate>
      <link>https://dev.to/kwhjvdkamp/follow-up-on-never-leave-your-email-address-raw-in-the-mailto-link-5fdf</link>
      <guid>https://dev.to/kwhjvdkamp/follow-up-on-never-leave-your-email-address-raw-in-the-mailto-link-5fdf</guid>
      <description>&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dVPRYGiF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w4euk3nkosa8hk305xqr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dVPRYGiF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w4euk3nkosa8hk305xqr.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--x-9Vl_I3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vn56onl54he3q2lo71d.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--x-9Vl_I3--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6vn56onl54he3q2lo71d.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Look carefully at the above *.png and *.gif, they speak for them self. &lt;/p&gt;

&lt;p&gt;Why this post? Accept it as a follow-up on Naseki's one (&lt;a href="https://dev.to/naseki/tip-never-leave-your-email-address-raw-in-the-mailto-link-here-s-what-to-do-instead-1c70"&gt;https://dev.to/naseki/tip-never-leave-your-email-address-raw-in-the-mailto-link-here-s-what-to-do-instead-1c70&lt;/a&gt;). Give her a '👍', she deserves it!  &lt;/p&gt;

&lt;p&gt;I expect, bots, scrappers or other nasty things, won't going to be too intelligent enough to mimic 'mouse' movements in the nearer future. Eventually, they will! Hopefully, there will be time enough to counteract. Let me know, if my 'grey wig' assumption is already outdated.&lt;/p&gt;

</description>
      <category>angular</category>
      <category>webdev</category>
      <category>html</category>
      <category>security</category>
    </item>
  </channel>
</rss>
