Giter Club home page Giter Club logo

chatapp's Introduction

Objective

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.

The 5 Ws

  1. Who—The users of the mobile chat app. These could be friends, family or other students on this course. Your 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 your chat app want to communicate with each other.
  4. Where—The app will be optimized for both Android and iOS devices. You will use Expo to develop the app and Google Firestore 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. The app will demonstrate your 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 page where users can enter their name and choose a background color for the chat screen before joining the chat.
  • A page displaying the conversation, 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

Technical Requirements

  • The app must be written in React Native.
  • The app must be developed using Expo.
  • The app must be styled according to the given screen design.
  • Chat conversations must be stored in Google Firestore Database.
  • The app must authenticate users anonymously via Google Firebase authentication.
  • Chat conversations must be stored locally.
  • The app must let users pick and send images from the phone’s image library.
  • The app must let users take pictures with the device’s camera app, and send them.
  • The app must store images in Firebase Cloud Storage.
  • The app must be able to read the user’s location data.
  • Location data must be sent via the chat in a map view.
  • The chat interface and functionality must be created using the Gifted Chat library.
  • The app’s codebase must contain comments.

How to use this App Step By Step Guide

  1. Clone the Repository: git clone https://github.com/michaelleoniuk/ChatApp

  2. Install Dependencies:

This App uses below dependencies:

  • React Native
  • Expo: Development framework for React Native
  • Firebase Storage: Storage service for Firebase
  • Firebase: Real-time database and storage services
  • React Navigation: Navigation library
  • react-native-gifted-chat: Chat UI components
  • expo-image-picker: Access to the device's image library
  • expo-location: Access to the device's location
  • expo-async-storage: Asynchronous, persistent key-value storage
  1. Configure Firebase
  • Sign in at Google Firebase
  • Create a Project (uncheck "Enable Google Analytics for this project")
  • Create Database in Firestore Database (choose a close region from the dropdown, and "Start in production mode")
  • Adjust rules from allow read, write: if false; to allow read, write: if true;
  • "Register app(</>)" in "Project Overview"
  • Navigate to the chat-app folder and install the Firebase using npm install firebase
  • Initialize Firebase by copying and pasting the provided Firebase configuration into the App.js
  1. Download Android Studio on your computer or use the Expo Go App on your mobile device
  • Run npx expo start in your terminal

chatapp's People

Contributors

michaelleoniuk avatar

Watchers

 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.