Giter Site home page Giter Site logo

firebase_webchat's Introduction

firebase_webchat

This is the source code for the Firebase_WebChat. This app is biding with firebase service and includes four functions: SignIn/SingUp, ediable profile, realtime contact list and chat room. (This code is still structing)

Feature

-Sign In/ Sign Up/ Log Out

-Ediale Profile Press the "Edit" button below the profile, the page will be directed to editable page. Press "Done" after finishing. -Realtime Contact List The contact page will retrieve data and list it to your page real time. -Chat Room Chat as a boss!

How to test?

-This app is still under structure, so there are only parts of functions could be tested.

-First step: Start a firebase project and get the API code.

-Second Step; Replace the config in main.js to yours.

eg, var config = { apiKey: "Put your key here!", authDomain: "Put your authDomain here!, databaseURL: "Put your databaseURL here!", projectId: "Put your projectID here!", storageBucket: "Put your storageBucket here!", messagingSenderId: "Put your messagingSenderId here!" }; firebase.initializeApp(config);

-Third step(SignIn/SignUp) LogIn with Email, Password! (Direct to chat page) SignIn with Email and Password! (Direct to profile edite page, to confirm the data of user)

-Forth step(Editable Profile)

-Fifth step(Web Chat) (Under structure)

-Sixth step(Real Time Contact) Contact page will list the friends in your contact (../user/contact/). Thus, to test this function, uncomment the code " //make friends // $(document).ready(function(){ // //connect database // var msgRef = firebase.database().ref('message/contact/'); // // $('#btn-makefriend').on('click',function(){ // //save input // var Fakefriendname = $('#fakefriendname').val(); // var Fakefreindnumber = $('#fakefriendnumber').val(); // msgRef.push({ // FriendName:Fakefriendname, // FreindNumber:Fakefreindnumber, // }); // console.log('Congrats!You make had made a friend~') // }); // }); " in main.js Then, you can add friend and it will show on your contact page.

firebase_webchat's People

Contributors

hinrick 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.