Skip to content

deepthapliyal/StartWithFirebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Take your website online with firebase in less then Five minutes:

  1. Create a Firebase Project:

    • Go to the Firebase Console (console.firebase.google.com).
    • Click on "Add project" and follow the prompts to create a new project.
  2. Install nodejs

    • Visit the official Node.js website (https://nodejs.org/).
    • Download and install the LTS version suitable for your operating system.
    • After installation, open your terminal or command prompt and run node -v to verify that Node.js is installed.
  3. Install Firebase CLI:

    • Open your terminal or command prompt.
    • Run npm install -g firebase-tools to install the Firebase CLI globally.
  4. Initialize Firebase Project:

    • Navigate to your project directory using the terminal.
    • Run firebase login and log in with your Google account.
    • Run firebase init to initialize Firebase in your project directory.
    • Choose Hosting as the feature and select your project.
  5. Create a Simple Website:

    • In your project directory, create an index.html file and add some basic HTML content.
  6. Deploy to Firebase Hosting:

    • In the terminal, run firebase deploy to deploy your website to Firebase Hosting.
    • Once the deployment is successful, Firebase will provide you with a hosting URL.

Here's a simple example of an index.html file you can use:

<!DOCTYPE html>
<html>
<head>
    <title>My Firebase Website</title>
</head>
<body>
    <h1>Welcome to My Firebase Website</h1>
    <p>This is a simple website hosted on Firebase.</p>
</body>
</html>

About

Take your website online with firebase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published