React Beginner [project based learning]

aryan inglearyan ingle
2 min read

Problems that I encountered:

1.

  • Executable Files Restriction: Firebase Hosting, under the Spark (free) plan, does not allow the deployment of executable files, which typically include .exe, .dll, .bat, and similar file types. This restriction is put in place for security and cost management reasons.

  • Retries Exhausted: The error mentions that the task was retried multiple times but failed each time due to this restriction.

Commands I used:

  1. npx create-react-app my-app --template cra-template-pwa.

    Command initializes react with a template as pwa and integrate a tool called as 'workbox'.

  2. npm install -g firebase-tools

  3. firebase login

  4. firebase init hosting

  5. npm run build

  6. firebase deploy

What I Learned

  1. npm install -g firebase-tools :

    A] Use to install the firebase tools.

    B] firebase login : To login into the account on firebase. To connect the firebase project with the our project.

    It gives an URL to login from browser and waits till the authentication is completed .

    C]

    D] firebase init hosting: To initialize linking between project and firebase for project hosting on firebase.

    E]'Build' file is created in my project directory from where the project will be deployed ; where react will compile my code too .

    F] npm run build : Tells react to bundle up all the code with the web app.

    G]firebase deploy : IT uploads the project to the cloud and it give a URL 'web.app' making it accessible.

  2. URL in Browser :

0
Subscribe to my newsletter

Read articles from aryan ingle directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

aryan ingle
aryan ingle