Git Product home page Git Product logo

chat-app's Introduction

Snappy - A React JS Chat Application

CHAT APPLICATION WITH REACT JS

Ask Me Anything ! Maintenance GitHub license GitHub branches Github commits Website GitHub issues

⚠️ Before you start

  1. Make sure Git and NodeJS is installed
  2. Yarn is faster than Npm. So use Yarn.
  3. Create .env file in both public and server folder.
  4. server/.env
PORT=5000
MONGO_URL=xxxxxxxxxxxxxx
MESSAGE_ALGORITHM="aes-256-ctr"

MESSAGE_SECRET_KEY="xxxxxxxxxxxxxxxxxx"
CLIENT_URL="http://localhost:3000"
  1. public/.env
REACT_APP_CHAT_APP_USER="xxxxxxxxxxxxxxxxxxxxxx"
REACT_APP_MULTIAVATAR_API_KEY="xxxxxxxxxxxxxxxxx"
REACT_APP_SERVER_URI="http://localhost:5000"
  1. In most cases localhost is set to port 3000 and 5000 in client and server side respectively. But if there is any issue in connection you can change these values.
  2. Make sure Mango Db and Mongo Db Compass is installed on your local system. If it's not, you can follow this guide.
  3. Now copy your mongo db url as shown below:

Copy mongo db url)

NOTE: Both MESSAGE_SECRET_KEY and REACT_APP_CHAT_APP_USER are just different random strings. You can generate them using a password generator. Make sure their length is of decent amount like 16 or 32.

  1. To setup Avatar, Create an account in Multiavatar API
  2. On app dashboard, copy your key as shown below and paste them in .env file in public folder. copy api key NOTE: You can use Multiavatar API without account but API requests are limited to 10/min that's why, I didn't recommend doing it in that way. Make sure you don't share them publicly.

📌 How to use this App?

  1. Clone this repository to your local computer.

  2. Open terminal in root directory and cd server

  3. Type and Run yarn install

  4. Run yarn start to start back end server

  5. Now, check console. If it says, Server is running! and Database connection successfull. Then it means that everything is working fine! console.log output

  6. Now, nodejs server is configured and started. Next, we need to setup Client side server.

  7. Open a new Terminal and run yarn install. Make sure you are in public folder.

  8. Once packages are installed, type and run yarn start

  9. Now client side server will be started and you can start using this app 👍

Authentication Page

📃 Built with



🔧 Stats

Stats for this App

🙌🏼 Contribute

This app is currently not mobile responsive. Only responsive upto Tablet devices. You are more than welcome to contribute. Just submit changes via pull request and I will review them before merging. Make sure you follow community guidelines.

Buy Me a Coffee 🍺

🚀 Follow Me

GitHub followers Twitter YouTube

chat-app's People

Contributors

sanidhyy avatar dependabot[bot] avatar aakash-a-dev avatar

Stargazers

Karthik Raju avatar Subhojit Sikdar avatar  avatar

Watchers

 avatar  avatar

Forkers

aakash-a-dev

chat-app's Issues

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.