<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.8.5">Jekyll</generator><link href="https://yashgo0018.github.io//feed.xml" rel="self" type="application/atom+xml" /><link href="https://yashgo0018.github.io//" rel="alternate" type="text/html" /><updated>2020-03-27T14:20:40+00:00</updated><id>https://yashgo0018.github.io//feed.xml</id><title type="html">Yash Goyal</title><subtitle>A Progammer And Data Scientist</subtitle><author><name>Yash Goyal</name><email>yashgo0018@gmail.com</email></author><entry><title type="html">Tally Clone</title><link href="https://yashgo0018.github.io//tally-clone/" rel="alternate" type="text/html" title="Tally Clone" /><published>2019-07-17T00:00:00+00:00</published><updated>2019-07-17T00:00:00+00:00</updated><id>https://yashgo0018.github.io//tally-clone</id><content type="html" xml:base="https://yashgo0018.github.io//tally-clone/">&lt;p&gt;This is a accounting web app that can serve the purpose of tally. This is developed with angular and firebase. &lt;a href=&quot;https://tally-clone.firebaseapp.com/&quot;&gt;View Demo&lt;/a&gt;&lt;/p&gt;

&lt;h2 id=&quot;get-started&quot;&gt;Get Started&lt;/h2&gt;

&lt;h4 id=&quot;install-dependencies&quot;&gt;Install Dependencies&lt;/h4&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Install Your Project Dependencies&lt;/p&gt;

    &lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;npm &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Install Firebase Depndencies&lt;/p&gt;

    &lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;firebase/functions
npm &lt;span class=&quot;nb&quot;&gt;install&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;step-up-firebase-related-stuff-&quot;&gt;Step Up Firebase Related Stuff:-&lt;/h4&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Make a file src/environments/firebase.ts and add your firebase credentials in that file:-&lt;/p&gt;

    &lt;div class=&quot;language-ts highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;export&lt;/span&gt; &lt;span class=&quot;kd&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;firebase&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;nx&quot;&gt;your&lt;/span&gt; &lt;span class=&quot;nx&quot;&gt;credentials&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;setup-firebase-functions-and-firestore-rules-&quot;&gt;Setup Firebase Functions and Firestore rules:-&lt;/h4&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Install &lt;a href=&quot;https://firebase.google.com/docs/cli&quot;&gt;firebase cli client&lt;/a&gt; and login with your account.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Make Your Firebase Project in firebase console.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Make a file firebase/.firebaserc and add the following and replace your-project-name with your project name:-&lt;/p&gt;

    &lt;div class=&quot;language-json highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;projects&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nl&quot;&gt;&quot;default&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;your-project-name&quot;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Deploy Your Firebase Functions and Firestore Rules.&lt;/p&gt;

    &lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;firebase deploy &lt;span class=&quot;nt&quot;&gt;--only&lt;/span&gt; functions
firebase deploy &lt;span class=&quot;nt&quot;&gt;--only&lt;/span&gt; firestore
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;test-your-project--&quot;&gt;Test Your Project :-&lt;/h4&gt;

&lt;ul&gt;
  &lt;li&gt;Run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ng serve&lt;/code&gt; for a dev server. Navigate to &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;http://localhost:4200/&lt;/code&gt;. The app will automatically reload if you change any of the source files.&lt;/li&gt;
&lt;/ul&gt;

&lt;h5 id=&quot;and-you-are-done&quot;&gt;And You are done.&lt;/h5&gt;

&lt;h2 id=&quot;build&quot;&gt;Build&lt;/h2&gt;

&lt;p&gt;Run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ng build&lt;/code&gt; to build the project. The build artifacts will be stored in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;dist/&lt;/code&gt; directory. Use the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;--prod&lt;/code&gt; flag for a production build.&lt;/p&gt;

&lt;h2 id=&quot;running-unit-tests&quot;&gt;Running unit tests&lt;/h2&gt;

&lt;p&gt;Run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ng test&lt;/code&gt; to execute the unit tests via &lt;a href=&quot;https://karma-runner.github.io&quot;&gt;Karma&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;running-end-to-end-tests&quot;&gt;Running end-to-end tests&lt;/h2&gt;

&lt;p&gt;Run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ng e2e&lt;/code&gt; to execute the end-to-end tests via &lt;a href=&quot;http://www.protractortest.org/&quot;&gt;Protractor&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id=&quot;deploy-web-app-to-firebase-hosting&quot;&gt;Deploy Web App to firebase Hosting&lt;/h2&gt;

&lt;p&gt;Run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;npm run deploy&lt;/code&gt; And It will deploy a production version to firebase hosting and you will be running the web app on the firebase.&lt;/p&gt;</content><author><name>Yash Goyal</name><email>yashgo0018@gmail.com</email></author><category term="angular" /><category term="firebase" /><category term="business" /><category term="javascript" /><summary type="html">This is a accounting web app that can serve the purpose of tally. This is developed with angular and firebase. View Demo</summary></entry></feed>