Skip to content
forked from rem029/chat

Full stack chat app using socket.io and postgres

Notifications You must be signed in to change notification settings

victor-perkins226/chat

 
 

Repository files navigation

Welcome to chat 👋

Typescript React + Node With Automated Deployment to Linux Server

Install

Apps required (skip if already installed in your workstation)

  1. NodeJS

  2. Git Bash

  3. Python from Microsoft Store (for yarn)

  4. Visual Studio Build Tools

  5. Lerna package

  6. Postgres. References below:

  7. Create postgres user with default password 123

(Optional install lerna)

yarn add global lerna
  1. on root folder run to install packages:
yarn install; yarn install:packages:deps
  1. on root folder run to install packages:
yarn start
  1. (Optional) On VSCode. install the following extensions:

    • Prettier
    • ESLint

Usage

yarn start

Publish new version

yarn publish:version [major | minor | patch | prerelease]

App theme config

Font family and color palette to be configure here.

Note

.env file location

chat/

.env format

GITHUB_AUTH=<github auth api key for lerna version> Generated from Github settings

.env sample usage

GITHUB_AUTH=123456

.env format each package

Branch naming and commit message (MUST FOLLOW)

Types

  • feat - new/additional features.
  • fix - improvement/bug fix on existing features.
  • tech - refactor code, etc.

Branch naming

<type>/<title>

Ex.

feat/dashboard
feat/login
fix/dashboard
fix/login
fix/login-performance
tech/user-input

Commit messages

To easily generate changelog we must follow branch naming as per below:

<type>(<title>): <Description>

Ex.

// new features
feat(dashboard): improved UI.
feat(login): added login UI.

// bug fixing
fix(dashboard): Bug fix.
fix(login): improve performance login.

// refactor or etc.
tech(user-input): refactor debounce.

Packages

Path

chat/packages/
  • Backend server for chat
  • Frontend UI for chat
  • Shared types between backend and frontend. Mostly used to API response data types.

GitHub Secret Keys

API_MAIL_DOMAIN=<string>
API_MAIL_KEY=<string>
API_MAIL_SENDER=<string>
API_TOKEN_REFRESH=<generate random string>
API_TOKEN_SECRET=<generate random string>
DB_DB
DB_HOST
DB_PORT
DB_PW
DB_USER
HOST_PATH=</var/www/{name}/>
SSH_HOST=<ip>
SSH_KEY=<cat ~/.ssh/id_rsa>
SSH_PORT=22
SSH_USER=<username>

Author

About

Full stack chat app using socket.io and postgres

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 87.2%
  • JavaScript 7.3%
  • HTML 2.9%
  • Shell 1.9%
  • CSS 0.7%