Skip to content

JesusYouth Web is a sample social networking JavaScript/Web app with the Firebase Platform. JesusYouth is a place where you can share photos, follow friends, comment on photos, and pray together... The wrapers can be used for creating mobile apps in Android and IOS.

Notifications You must be signed in to change notification settings

abhinavthomas/JesusYouth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

JesusYouth

JesusYouth Web is a sample social networking JavaScript/Web app with the Firebase Platform.

JesusYouth is a place where you can share photos, follow friends, comment on photos, and pray together...

The wrapers can be used for creating mobile apps in Android and IOS.

Initial setup, build tools and dependencies

JesusYouth is built using Javascript, Firebase and jQuery. The Auth flow is build using Firebase-UI. Javascript dependencies are managed using bower and Build/Deploy tools dependencies are managed using npm. Also JesusYouth is written in ES2015 so for wide browser support we'll transpile the code to ES5 using BabelJs.

Install all Build/Deploy tools dependencies by running:

$> npm install

Create Firebase Project

  1. Create a Firebase project using the Firebase Console.
  2. Enable Google as a Sign in provider in Firebase Console > Auth > Sign in Method tab.
  3. Enable Facebook as a Sign in provider in Firebase Console > Auth > Sign in Method tab. You'll need to provide your Facebook app's credentials. If you haven't yet you'll need to have created a Facebook app on Facebook for Developers
  4. Now click the WEB SETUP button in the top right corner to copy the initialization snippet it will look like this:
<script src="https://www.gstatic.com/firebasejs/<VERSION>/firebase.js"></script>
<script>
  // Initialize Firebase
  var config = {
    apiKey: "<YOUR_API_KEY>",
    authDomain: "<YOUR_PROJECT_ID>.firebaseapp.com",
    databaseURL: "https://<YOUR_PROJECT_ID>.firebaseapp.com",
    storageBucket: "<YOUR_PROJECT_ID>.firebaseapp.com",
  };
  firebase.initializeApp(config);
</script>

If the storageBucket value is empty you've hit a bug. Just close the window and click the WEB SETUP button again and you should get it.

Update the app with your firebase project

  1. In the root of the site locate the index.html in the root of the folder and replace the text below with the snippet you coppied above:
<!-- TODO(DEVELOPER): Paste the initialization snippet from: Firebase Console > Add Firebase to your web app. -->
  1. In the root of the site locate the file storage.rules and replace the storage bucket location with the one from firebase project:
// TODO: Change the <STORAGE_BUCKET> placeholder below
match /b/<STORAGE_BUCKET>/o {

Start a local development server

You need to have installed the Firebase CLI by running npm install.

You can start a local development server by running:

$> npm run serve

This will start firebase serve and make sure your Javascript files are transpiled automatically to ES5.

This is currently broken on Windows. On Windows please run the following commands separately instead: bower install, babel -w scripts -s --retain-lines -d lib and firebase serve.

Then open http://localhost:5000

Deploy the app

Deploy to Firebase using the following command:

$> npm run build
$> firebase deploy --project <PROJECT_ID>

This will install all runtime dependencies and transpile the Javascript code to ES5. Then this deploys a new version of your code that will be served from https://<PROJECT_ID>.firebaseapp.com

About

JesusYouth Web is a sample social networking JavaScript/Web app with the Firebase Platform. JesusYouth is a place where you can share photos, follow friends, comment on photos, and pray together... The wrapers can be used for creating mobile apps in Android and IOS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published