2021-11-10 19:22:04 +00:00
2022-12-07 20:05:12 +00:00
2023-05-31 02:57:55 +01:00
2021-12-18 22:34:07 +00:00
2022-12-16 01:21:50 +00:00
2023-06-07 07:01:31 +01:00
2021-12-26 17:33:54 +00:00
2023-01-03 01:07:14 +00:00
2025-03-21 18:36:06 +01:00
2021-12-22 20:59:56 +00:00

PVTChat - Messaging Made Simple.

PVTChat is an app, similar to Discord, but cooler. Built with React, TypeScript, and Node.js. Main point of PVT Chat is to fix accord bugs and continue maintenance for said app.

PVTChat is based on acrd.app, leave a star to original creator!

Text Channel Custom Themes Showcase Screenshot-from-2021-08-31-16-09-41 Profile Showcase Screenshot-from-2021-08-30-13-30-43 Screenshot-from-2021-08-30-11-55-01


Setup

  1. Clone the repo (from Gitea).
  2. Generate JWT key (secure user logins). From app directory:
    mkdir -p backend/keys
    ssh-keygen -t rsa -b 2048 -m PEM -f backend/keys/jwt
    
  3. Install npm packages. From app directory:
    # Install global dependencies
    npm i -g typescript
    
    # Install local packages
    cd frontend && npm i -f
    cd ../backend && npm i -f
    
  4. Add upload folder.
mkdir -p assets/upload
  1. In backend directory, configure .env.example and rename the file to .env

Features

  • Server Channels
    • Create channels
    • Delete channels
  • Message Management
    • Server owners can delete any message
    • Message author can delete and edit their own messages
  • Member Management
    • Kick members as the server owner
    • Easily leave the server by right clicking the server
    • Join servers with an invite code
  • Server Management
    • Create servers as you would in Discord
    • Edit server name, and icon URL in the server settings
    • Delete your server in the server settings
  • User Management
    • Manage your account by clicking the settings icon
    • Change your username, and avatar
    • Delete your user and prevent it from being used to login
  • and more (of course)

backend/.env (dev with Docker)

EMAIL_ADDRESS="...@gmail.com"
EMAIL_PASSWORD="..."
MONGO_URI="mongodb://database/accord"
NODE_ENV="dev"
PORT=3000
WEBSITE_URL="http://localhost:4200"
SESSION_SECRET="Please ⭐ this repository."

backend/test/.env (test without Docker)

API_URL="http://localhost:3001/api"
EMAIL_ADDRESS="...@gmail.com"
EMAIL_PASSWORD="..."
MONGO_URI="mongodb://localhost/accord-test"
NODE_ENV="dev"
PORT=3001
ROOT_ENDPOINT="http://localhost:3001"
WEBSITE_URL="http://localhost:4200"
SESSION_SECRET="Please ⭐ this repository."

Troubleshooting

App does not connect to MongoDB on Windows?

Languages
TypeScript 89.5%
CSS 9.1%
HTML 0.7%
Pug 0.5%
JavaScript 0.1%