Steps for hosting files on Firebase:
- Download and install Node.JS from here: https://nodejs.org/en/
- Open Node.js command prompt and install Firebase tools using this command: npm install -g firebase-tools
- Create a directory and place server all server files in the directory
- Via Node.js command prompt, navigate (cd path) to that directory in which you placed server files
- Enter the following command in node.js command prompt and complete login: > firebase login
- After logging in, enter command > firebase init
- Follow the steps shown on the screen, after that check your server directory
- Move your server directory inside the public folder just created.
- Now deploy the files, using : > firebase deploy
- Done. Check your files, they are public now.