This is a CMS created with Firebase and jQuery. We are just showing how to create a very simple CMS that will update a site's navigation and update the page content.
This is just the base HTML for the project. You will be creating the rest.
You need to plan your application you are creating and if you are going to include Firebase create a base project folder and then do all of this first before you start coding your project. It is easier, and also remember to put all of your files that you create for your application in the public folder that is created. So put your css, lib, app etc. in the public folder.
-
Create an app in the Firebase console on the web.
-
Enable Firestore as the database. Make sure you check start mode. Also, enable Google Auth in the authentication link on the left-hand side.
-
Load Firebase CLI Tools:
npm -g install firebase-tools
- Verify:
firebase --version
- Login and authorize Firebase:
firebase login
- Create project then run:
firebase init
- Associate with your project:
firebase use --add
- Setup for local hosting:
firebase serve --only hosting
- Bring in all the scripts for Firebase. You probably already have some. If you created the project before hand they are in the index.html file that was created by running
firebase init
-
If you are using sass make sure you have your package.json path for sass changed to public/sass
-
Deploy to Firebase:
firebase deploy --except functions