Skip to content

A clone of the Monkey App, a social media app that allows users to chat with random people.

Notifications You must be signed in to change notification settings

misterneo/monkey-app-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monkey App Clone 🐒

This project is a minimal clone of the Monkey App, a social media app that allows users to chat with random people. It uses a variety of technologies including ReactJS for the frontend, Redux Toolkit for state management, PeerJS for WebRTC, React useWebSocket, BunJS for the backend, and Docker for containerization and orchestration.

A live demo of the application can be accessed at: https://monkey.misterneo.pro

Table of Contents

Description

The Monkey App Clone is a project that aims to replicate the functionality of the Monkey App. It allows users to engage in video chats using WebRTC technology. It also allows users to send text messages to each other using WebRTC DataChannel. The app is built using ReactJS for the frontend, Redux Toolkit for state management, PeerJS for WebRTC, React useWebSocket, BunJS for the backend, and Docker for containerization and orchestration.

Technologies Used

Prerequisites

Before running the app, ensure that BunJS is installed on your machine. Installation instructions can be found here. If you are unable to install BunJS, you can use the Docker Compose file to run the app with Docker.

Running the app

  • Clone the repository
git clone https://github.com/misterneo/monkey-app-clone.git
cd monkey-app-clone

Using BunJS

Running the backend

  • Go to the server directory
cd server
  • Install the dependencies
bun install
  • Run the app
bun run index.ts

This will start a WebSocket and HTTP server on port 3000.

Optionally:

You can Specify the port using the --port flag, e.g., bun run index.ts --port 5000. Enable debug mode using --debug flag, e.g., bun run index.ts --debug.

If you decide to change the default port, you will need to update the VITE_SERVER_PORT variable in the .env.local file in the client directory. You can do that by copying the .env.example file and renaming it to .env.local. Then, update the VITE_SERVER_PORT variable to the port you specified.

Running the frontend

  • Go to the client directory
cd client
  • Install the dependencies
bun install
  • Run the app
bun run dev

This will start the app on port 5173. Navigate to http://localhost:5173 to view the app.

Using Docker Compose

  • Run the following command at the root of the project to start the app:
docker compose up -d --build

Wait for the app to start. This may take a few minutes the first time you run the command.

Navigate to http://localhost:5173 to view the app.

  • To stop the app, run the following command:
docker compose down

Contributing

Contributions are welcome. Feel free to open a pull request or submit an issue.

License

This project is licensed under the MIT license. See the LICENSE file for more details.

About

A clone of the Monkey App, a social media app that allows users to chat with random people.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published