Git Product home page Git Product logo

devlabsrset / jesusyouth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abhinavthomas/jesusyouth

0.0 1.0 0.0 20.58 MB

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.

HTML 13.36% JavaScript 54.47% CSS 12.90% Java 11.16% Roff 4.61% Swift 3.51%

jesusyouth's Introduction

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

jesusyouth's People

Contributors

abhinavthomas avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.