Skip to content

jdarshan5/RTChatApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Application

Description

A simple chat application using express.js to develop APIs

Fontend:

React Native Chat Application

TechStack

Tech Usage
Express.js Web application framework to handle HTTP request and responses
jwt To generate authentication token
bcrypt To incrypt text e.g. my_password to something ashvkbasdkhvbsdjvsdnljvnhsbv
dotenv For environment variables
MongoDB A NoSQL database to store data
socket.io For real time communication between client(Our mobile app) and server

Local Development

To Get Started

Install nvm, node and npm

step - 1: Install dependencies

run npm install, this command will install all the necessary packages required for this project.

step - 2: Setting ENV variables

create two file called .env.dev and .env.prod at the root of this project directory and add environment variables which are listed below,

Variable Name Usage
PORT Port number on which we want our application to run
MONGO_URI Your MongoDB database url
JWT_SECRET Secret key to pass in JWT

Your .env.dev file should look like this:

PORT=8080
MONGO_URI={`URL TO MONGODB DATABASE`}
JWT_SECRET=THISISMYSECRET

same goes for the .env.prod file

step - 3: Running our node application

For Development: npm run dev

For Production: npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published