Skip to content

bentossell/makerpad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

makerpad

Updating environment variables

firebase functions:config:set webflow.key="REPLACE_WITH_YOUR_KEY"
firebase functions:config:set webflow.site_id="REPLACE_WITH_YOUR_SITE_ID"
firebase functions:config:set memberstack.key="REPLACE_WITH_KEY"

Links to CDN

Base code (Main Page)

<!-- Sentry for error logging -->
<script src='https://js.sentry-cdn.com/dd1a9266f9ab4089af3422b735840179.min.js' crossorigin="anonymous"></script>
<!-- Firebase setup code -->
<script src="https://www.gstatic.com/firebasejs/7.16.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.16.0/firebase-analytics.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.16.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.16.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.16.0/firebase-storage.js"></script>
<script src="https://cdn.jsdelivr.net/gh/bentossell/makerpad@latest/client/firebase.js"></script>

Individual pages

When updating in Webflow, replace the version number (@latest) to match the latest github release (ie: @2.0.1)

Tutorials

<!-- Firebase tutorial code -->
<script src="https://cdn.jsdelivr.net/gh/bentossell/makerpad@latest/client/tutorials.js"></script>

Base Firebase Code & functions

This goes in the main webflow body code for the entire site

<!-- Firebase company code -->
<script src="https://cdn.jsdelivr.net/gh/bentossell/makerpad@latest/client/firebase.js"></script>

Companies

<!-- Firebase company code -->
<script src="https://cdn.jsdelivr.net/gh/bentossell/makerpad@latest/client/companies.js"></script>

Projects

<!-- Firebase project code -->
<script src="https://cdn.jsdelivr.net/gh/bentossell/makerpad@latest/client/projects.js"></script>

DOM Elements being targeted

Users

  • #username
  • .user-image

Projects

  • #wf-form-Submit-Project

Companies

  • #followed-companies

Reference

Add data to firestore https://firebase.google.com/docs/firestore/manage-data/add-data