Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

h8-exploration/capp-appwrite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAPP - Realtime Chat App

CAPP App is a web based realtime chat application. It has some features like realtime chat, add friend, search people, search chat, protected route, and login using google account.

This application is built using React.js for the frontend, Boostrap for the CSS framework, Appwrite for data storage and realtime features and express.js for custom servers as needed.

The inspiration behind the making of this application is whatsapp so that it looks similar to whatsapp.

Installation and Setup

Appwrite

  1. Install & running AppWrite on your machine. You can follow this instruction

  2. Create Appwrite Project

  3. Create API keys

  4. Create Database collection chats and friends with following attributes

friends:
  userId: String,
  friendId: String,
  createdAt: String


chats:
  userIds: [String]
  userId: String,
  text: String,
  createdAt: String
  1. Create indexes for chats and friends collections
friends:
  Index Key: userId
  type: fulltext
  attributes: userId (ASC)

chats:
  Index Key: userIds
  type: fulltext
  attributes: userIds (ASC)
  1. Set friends and chats collection permission
  • Type: Collection Level
  • Read Access: role: all
  • Write Access: role: all
  1. Enable Google OAuth2 Providers

 

Server

  1. On root directory run this command
$ cd server
  1. Install all dependencies
$ npm install
  1. Set environment variables
  2. Run server app
$ npm Start

 

Client

  1. On root directory run this command
$ cd client
  1. Install all dependencies
$ npm install
  1. Set environment variables
  2. Running client app
$ npm Start

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published