├── README.md ├── firebase-test ├── firebasetest.js └── index.html ├── index.html └── profile.html /README.md: -------------------------------------------------------------------------------- 1 | # pair-partners 2 | A web app that helps people find study partners for virtual pair programming and collaboration 3 | -------------------------------------------------------------------------------- /firebase-test/firebasetest.js: -------------------------------------------------------------------------------- 1 | // Initialize Firebase 2 | var config = { 3 | apiKey: "AIzaSyCdoBkKYmhVlgvy46sBKLLknJUszf-TYAc", 4 | authDomain: "test-web-app-4fde9.firebaseapp.com", 5 | databaseURL: "https://test-web-app-4fde9.firebaseio.com", 6 | projectId: "test-web-app-4fde9", 7 | storageBucket: "test-web-app-4fde9.appspot.com", 8 | messagingSenderId: "406177608219" 9 | }; 10 | 11 | firebase.initializeApp(config); 12 | 13 | // Create a JavaScript object for the HTML element that has id="message" 14 | var messageBox = document.getElementById("message"); 15 | // Create a JavaScript object for the HTML element that has id="username" 16 | var usernameBox = document.getElementById("username"); 17 | 18 | // Get a reference to the root of our database 19 | var dbRef = firebase.database().ref(); 20 | // Get a reference to the "greeting" section of our database 21 | var dbGreeting = dbRef.child("greeting"); 22 | // Get a reference to the "myname" section of our database 23 | var dbUsername = dbRef.child("myname"); 24 | 25 | // Whenever "greeting" value in our database is updated, show the data inside messageBox! 26 | dbGreeting.on("value", function(dataSnapshot) { 27 | messageBox.textContent = dataSnapshot.val(); 28 | console.log( dataSnapshot.val() ); 29 | }); 30 | 31 | // Whenever "myname" value in our database is updated, show the data inside usernameBox! 32 | dbUsername.on("value", function(dataSnapshot) { 33 | usernameBox.textContent = dataSnapshot.val(); 34 | console.log( dataSnapshot.val() ); 35 | }); 36 | -------------------------------------------------------------------------------- /firebase-test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Firebase Test 5 | 6 | 7 | 8 |

Testing Firebase!

9 |

10 |

11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Untitled Document 6 | 7 | 8 | 9 |
Log in
10 |

Hot Projects Available Now

11 | 12 |
13 | 14 | 15 | 16 |

Jack

17 |

Bike map project

18 |

I'm working on this app. Let's do it together. 19 |

20 | 21 | 22 | 23 | 24 |
25 |
26 | 27 | 28 | 29 |

Mary

30 |

Recipes

31 |

I'm working on this app. Let's do it together. 32 |

33 | 34 | 35 | 36 | 37 |
38 |
39 | 40 | 41 | 42 |

Bob

43 |

Calculator app (Beginner)

44 |

I'm working on this app. Let's do it together. 45 |

46 | 47 | 48 | 49 | 50 |
51 | 52 | 53 | -------------------------------------------------------------------------------- /profile.html: -------------------------------------------------------------------------------- 1 | - 2 | - 3 | - 4 | - 5 | - 6 | - 7 | - 8 | - User Profile - Code Pair Partners 9 | - 10 | - 11 | - 12 | -

User Profile

13 | - Mountain View 14 | - 15 | - 16 | -

Online vs Offline

17 | - 26 | - 27 | -

Projects

28 | - 32 | -

Skills

33 | -
  • Beginner or Intermediate
  • 34 | -
  • JavaScript
  • 35 | -
  • HTML
  • 36 | -
  • CSS
  • 37 | - 38 | - 39 | -

    Schedule

    40 | - 41 | - 42 | - 43 | - --------------------------------------------------------------------------------