An open API service indexing awesome lists of open source software.

https://github.com/olha-dev-fullstack/pern-chat-app

Real time messaging app
https://github.com/olha-dev-fullstack/pern-chat-app

express nodejs postgresql prisma react

Last synced: about 2 months ago
JSON representation

Real time messaging app

Awesome Lists containing this project

README

          

# PERN Stack Project: Real Time Chat App | Postgres, TypeScript, Prisma

## Features

- Tech stack: PERN + TypeScript + Socket.io + Prisma + TailwindCSS
- Authentication && Authorization with JWT
- Real-time messaging with Socket.io
- Online user status (Socket.io and React Context)
- Global state management with Zustand
- Error handling both on the server and on the client

## Run Locally

### Setup .env file

```js
DATABASE_URL=...
JWT_SECRET=...
NODE_ENV=...
PORT=...
```

### Install dependencies

```shell
npm install
```

### Build the app

```shell
npm run build
```

### Start the app

```shell
npm start
```