Skip to content

ChatApp built with React Native, Expo, Node.js, MongoDB and Socket.IO

Notifications You must be signed in to change notification settings

Kritik-J/chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ChatApp

This is a ChatApp built with React Native, Expo, Node.js, and MongoDB.

Demo Video

ChatApp Demo

Installation

Clone the repository and install the dependencies.

git clone
cd chatapp
npm install

Usage

First, start the server.

cd backend
npm install
npm start

Then, start the mobile app.

cd app-mobile
npm install
npm start

Environment Variables

For the backend to work properly, you will need to add the following environment variables to your .env file

MONGODB_URL

PORT

JWT_SECRET_KEY

JWT_EXPIRE

JWT_COOKIE_EXPIRES_IN

Note: You can use any value for JWT_SECRET_KEY. JWT_EXPIRE is in the number of days. For example, 30d means the token will expire in 30 days. JWT_COOKIE_EXPIRES_IN is in the number of days. For example, 30 means the cookie will expire in 30 days.

For the mobile app to work properly, you will need to add the following environment variables to your .env file

API_URL WS_URL

Note: Your API_URL should be the same as your backend server URL. For example, if your backend server is running on localhost:5000, then your API_URL should be http://localhost:5000/api/v1. If localhost doesn't work, try using your IP address. For example, http://your-ip-address:5000/api/v1 and WS_URL should be ws://your-ip-address:5000 or ws://localhost:5000

API Reference

Visit README.md in the backend folder.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

ChatApp built with React Native, Expo, Node.js, MongoDB and Socket.IO

Resources

Stars

Watchers

Forks