Giter Site home page Giter Site logo

friendly-chat's Introduction

(Musto) Friendly Chat

  • An implementation of React Native for developing a simple Chat application for mobile devices (iOS/Android)

OBJECTIVES

  • To build a chat app for mobile devices using React Native.
  • The app will provide users with a chat interface and options to share images and their location.

WATCH THE DEMO ON YOUTUBE ๐Ÿ“ฝ๏ธ๐Ÿ”—

SCREENSHOTS

Welcome Screen User Profile Chat Area Chat Options

THE 5 Ws

  1. Who โ€” The users of the mobile chat app. These could be friends, family or other students. The codebase will be used by other developers working on the product.
  2. What โ€” A native chat app built with React Native, as well as all the relevant documentation.
  3. When โ€” Whenever users of the chat app want to communicate with each other.
  4. Where โ€” The app will be optimized for both Android and iOS devices. The Expo will be used to develop the app and Google Firebase to store the chat messages.
  5. Why โ€” Mobile chat apps are among the most commonly downloaded and used apps in the world, so knowing how to build a chat app is an indispensable skill. This app will demonstrate the React Native development skills.

USER STORIES

  • As a new user, I want to be able to easily enter a chat room so I can quickly start talking to my friends and family.
  • As a user, I want to be able to send messages to my friends and family members to exchange the latest news.
  • As a user, I want to send images to my friends to show them what Iโ€™m currently doing.
  • As a user, I want to share my location with my friends to show them where I am.
  • As a user, I want to be able to read my messages offline so I can reread conversations at any time.
  • As a user with a visual impairment, I want to use a chat app that is compatible with a screen reader so that I can engage with a chat interface.

KEY FEATURES

  • A welcome page where users can select to set/reset their profile and messages, as well as entered their desired chatroom code, and choose a background color for the chat screen before joining the chat.
  • A profile page where users can enter their username, select, pick from library, or take a photo for their user avatar and choose a background color for their profile.
  • A page displaying the conversation, chatroom code, as well as an input field and submit button.
  • The chat must provide users with two additional communication features: sending images and location data.
  • Data gets stored online and offline.

NOTES:

TECHNOLOGIES USED

HOW TO USE

  1. Please, create a configuration file, named ".firebaseConfig.json" in the root directory (where tha App.js file is located), and add all Firebase-related configurations to it, as follows:
{
  "appConfig": {
    "apiKey": "YOUR_FIREBASE_API_KEY",
    "authDomain": "YOUR_FIREBASE_AUTH_DOMAIN",
    "projectId": "YOUR_FIREBASE_PROJECT_ID",
    "storageBucket": "YOUR_FIREBASE_STORAGE_BUCKET",
    "messagingSenderId": "YOUR_FIREBASE_MESSAGING_SENDER_ID",
    "appId": "YOUR_FIREBASE_APP_ID",
    "measurementId": "YOUR_FIREBASE_MEASUREMENT_ID"
  },
  "dbConfig": {
    "collectionName": "YOUR_FIREBASE_DATABASE_COLLECTION_NAME_FOR_ALL_MESSAGES"
  },
  "storageConfig": {
    "bucketURL": "YOUR_FIREBASE_STORAGE_BUCKET_URL_FOR_IMAGES",
    "imageDirectory": "YOUR_FIREBASE_STORAGE_DIRECTORY_NAME_FOR_IMAGES",
    "avatarsDirectory": "YOUR_FIREBASE_STORAGE_DIRECTORY_NAME_FOR_AVATARS"
  }
}
  1. Add and enable two Indexes for the Collection specified in the collectionName above.

    1. Fields indexed:
      • chatroomCode: Ascending
      • serverReceivedAt: Descending
      • __name__: Descending
    2. Fields indexed:
      • uid: Ascending
      • serverReceivedAt: Descending
      • __name__: Descending
  2. Add (create) two folders in the Firebase Storage, one for the images, and one for the user avatars.

    • e.g. 1) images, 2) avatars
  3. Upload the three default avatars, provided in the src/assets/img/avatars folder, to the Firebase Storage, created for avatars.

  4. Run npm install in terminal from the root directory to install all necessary packages and dependencies.

  5. Run npm start in terminal from the root directory to run the Expo.

  6. Follow the instructions provided by the Expo.

  7. Enjoy it.

COPY RIGHTS

Icons were downloaded from:

Background images were downloaded from:

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.