Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dphasst17/chatapp
https://github.com/dphasst17/chatapp
docker microservice mongodb-atlas mongoose nestjs-backend nextjs s3-storage socket-io
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dphasst17/chatapp
- Owner: dphasst17
- Created: 2024-09-08T07:07:54.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-29T12:44:26.000Z (17 days ago)
- Last Synced: 2024-10-29T15:13:06.615Z (17 days ago)
- Topics: docker, microservice, mongodb-atlas, mongoose, nestjs-backend, nextjs, s3-storage, socket-io
- Language: TypeScript
- Homepage:
- Size: 1.9 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chat App
This is a chat application built with modern web technologies. The client side is developed using Next.js, Zustand, Tailwind CSS, and Next UI, while the server side is powered by NestJS, MongoDB, Mongoose, Socket.IO, and microservices architecture.
## Features
- Real-time messaging
- User authentication
- Responsive design
- Scalable microservices architecture## Technologies Used
### Client Side
- **Next.js**: A React framework for server-side rendering and static site generation.
- **Zustand**: A small, fast, and scalable state-management solution.
- **Tailwind CSS**: A utility-first CSS framework for rapid UI development.
- **Next UI**: A beautiful, fast, and modern React UI library.### Server Side
- **NestJS**: A progressive Node.js framework for building efficient, reliable, and scalable server-side applications.
- **MongoDB**: A NoSQL database for storing user data and messages.
- **Mongoose**: An elegant MongoDB object modeling tool for Node.js.
- **Socket.IO**: A library for real-time web applications.
- **Microservices**: A design pattern for developing a single application as a suite of small services.
- **AWS S3 STORAGE**## Installation
1. Clone the repository:
```bash
git clone https://github.com/dphasst17/chatApp.git
cd chatApp
```
2. Install dependencies for the client:
```bash
cd client && bun install
```
3. Create env file in server and client:
```bash
- client
-> src
...
-> .env
-server
-> api-gateway
-> auth
-> chat
-> images
-> user
-> .env
-> docker-compose.yml
```
4. Env Server :```bash
NAME=name
PASS=passwordmongo
DATABASE=database
SECRET=secretketJWT
AWS_ACCESS_KEY_ID=key
AWS_SECRET_ACCESS_KEY=key
AWS_REGION=region
NATS_URL=nats
PORT=port
```## Running the Application
### Client
```bash
cd client && bun run dev
```or build and start client with command
```bash
cd client && bun bs
```### Server
```bash
cd server && docker compose up -d && docker compose logs -f
```