Sitemap

Getting Started with Reveal Js: Create Web-based presentation with Reveal Js, Git and deploying on firebase

4 min readDec 9, 2020

In this blog, we will learn how to Installed Reveal js Presentation and deploy the Presentation on Firebase which provides free hosting. In this blog, we will focus on the installation and deployment process. In the next blog, we will more focus on creating custom Presentations so you can follow me up to get updates.

Press enter or click to view image in full size

Prerequisites

  • familiarity with Git for local and remote work
  • basic HTML and text editing skills
  • basic CSS understanding and skills
  • Markdown Language

How To

Step 1:

Install Node Js from Here

Step 2:

Download the Reveal js from Here or you can also use git to clone Reveal Js.

You can learn Git and Github from this blog

You can also learn Git and Github from my RevealJs based HTML presentation.

git clone https://github.com/hakimel/reveal.js.git

Press enter or click to view image in full size

Step 3:

cd reveal.js && npm install

npm will install all the required packages for the reveal js.

Step 4:

npm start

open http://localhost:8000 to check your demo presentation.

incase your port is in use so go to the reveal.js folder and then edit gulpfile.js and change the port 8000 to 3000

Press enter or click to view image in full size

After changing port our presentation is live on localhost

Press enter or click to view image in full size

Let's Deploy this to Firebase

Step 0:

Once you’ve installed NodeJs, you can install the Firebase CLI using npm (the Node Package Manager) by running the following command:

npm install -g firebase-tools

After this, Go to Firebase official Website and Login to your Account

Step 1:

Go to console and Click on Add a Project

Press enter or click to view image in full size

Step 2:

Add your project name.

Press enter or click to view image in full size

Step 3:

This Step is Optional You can Enable Google Analytics for your firebase if you want.

Press enter or click to view image in full size

Step 4:

Hurray! Our Project is Created let's have some hands-on on CMD.

Press enter or click to view image in full size

Step 5:

First, we need to move our Reveal Js Files into a public folder.

After:

Press enter or click to view image in full size

Moving all files in Public folder:

Press enter or click to view image in full size

Step 6:

First, we need to login into firebase from the command line. Type in the following command.

firebase login

Step 7 :

Initialized a Firebase project

To initialize the firebase project you have to enter the command

firebase init
Press enter or click to view image in full size

Enter Yes or Y to proceed.

Press enter or click to view image in full size

You need to select the Hosting by Pressing Space Button and press Enter.

Press enter or click to view image in full size

Select the Use an existing project

Press enter or click to view image in full size

Press Enter because we were already Done this step.

Press enter or click to view image in full size

Type in N or No

Press enter or click to view image in full size

Also, type No for GitHub if not required.

Press enter or click to view image in full size

Also, Type the No for Overwrite Index.HTML file.

Lets test before Deploy

Before deploying on Firebase lets check on localhost by following the command

firebase serve
Press enter or click to view image in full size

Hurray! Website is Working on Local Host

Press enter or click to view image in full size

Let's Deploy on Firebase

we finally test our Presentation website on a Localhost now its time to deploy on firebase with the following command

firebase deploy
Press enter or click to view image in full size

Let's check using the hosting URL

Press enter or click to view image in full size

Conclusion

This is the first part of the blog where we install Reveal js and also Deploy on Firebase. In the Next Blog, we will learn how to create a custom Presentation with a complete Explanation. Before Starting Second Blog Please read my MarkDown Wiki

--

--

No responses yet