/docker-react-chat-app

Multi docker containers Chat application using Nodejs and Vite + React

Primary LanguageJavaScript

docker-react-chat-app

A simple real time chat app created with Nodejs, ReactJs and MongoDB and Firebase for Authentication

Each component of the app runs as separate containers and it is currently deployed to Google Cloud Compute Engine.

Hosted on: http://34.71.9.20/

There are default users on the app which you can start chatting with

  1. Willie
  2. Waylon
  3. Johnny
  4. Ndohjapan

How It Works

Clone this repo

git clone https://github.com/Ndohjapan/docker-react-chat-app.git

Create a firebase web app and get your credentials

Firebase App Credentials

Create Your .env file in the 'youtube2022' directory

Add those credentials as variables into the .env file

REACT_APP_API_KEY=string
REACT_APP_AUTH_DOMAIN=string
REACT_APP_PROJECT_ID=string
REACT_APP_STORAGE_BUCKET=string
REACT_APP_MESSAGE_SENDER_ID=string
REACT_APP_APP_ID=string
REACT_APP_MEASUREMENT_ID=string

Run the docker compose in the root directory

docker-compose -f docker-compose-dev.yaml up

After that you can access the application on localhost:3000

Login Page

Whole Application

How To Test

docker compose -f docker-compose-test.yaml up

This will run a test on the server apis. you should see something like this Whole Application