GithubHelp home page GithubHelp logo

mian-ali / mern-webchat-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 136 KB

Real-Time Chat Website with MERN Stack, Socket.io, with Styled Components

Home Page: https://web-chat-app-blush.vercel.app/

JavaScript 98.78% HTML 0.61% CSS 0.61%
chat-app chat-application mern-chatapp nodejs socket-io docker docker-compose express mern-stack nodejs-server

mern-webchat-app's Introduction

Real-Time Chat webApp with MERN Stack, Socket.io, with Styled Components

Technologies Used

  • MERN stack (MongoDB, Express.js, React.js, and Node.js)
  • Socket.io
  • Multiavatar API (Avatar Generator API)
  • Styled Components (For UI)

Configuration and Local Setup project

In the first terminal

  • cd client and create a .env file in the root of your client directory.
  • Supply the following credentials
VITE_AVATAR_KEY=AVATAR_API_KEY
VITE_SERVER_URL=http://localhost:5000
$ cd frontend
$ npm install (to install client-side dependencies)
$ npm run dev (to start the client)

In the second terminal

  • cd server and create a .env file in the root of your server directory.
  • Supply the following credentials
PORT=5000
MONGO_URI=YOUR_MONGO_URI
CLIENT_URL=http://localhost:3000
ACCESS_TOKEN_SECRET=ADD_YOUR_RANDOM_TOKEN
REFRESH_TOKEN_SECERT=ADD_YOUR_RANDOM_TOKEN
COOKIE_SIGNATURE=ADD_YOUR_RANDOM_SIGNATURE

$ cd backend
$ npm install (to install server-side dependencies)
& npm run dev (to start the server)

mern-webchat-app's People

Contributors

mian-ali 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.