Skip to content

Users create accounts, login, and chat with other users on a message board. NextJs | Node/Express | PostgreSQL | Socket.io | TypeORM | JSON Web Token

Notifications You must be signed in to change notification settings

BryanGK/chat_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat App

To run this application locally please do the following:

  1. Have instance of PostgreSQL database running locally. Click here to download.
  2. In the app directory run:
$ cp ./sample.env .env
  1. Input values to the .env file for the following:
DB_HOST # database host url as a string: 'localhost'
DB_PORT # database port as a number: 5432
DB_NAME # database name as a string: 'chat_app'
DB_USERNAME # database username as a string: 'postgres'
DB_PASSWORD # database password as a string: 'postgres'
ACCESS_TOKEN_SECRET # JWT access token as a string
REFRESH_TOKEN_SECRET # JWT refresh token as a string

# (optional) To generate random access tokens:
# Open terminal and run:
$ node
$ require('crypto').randomBytes(64).toString('hex');
  1. In the app directory run:
$ yarn
$ yarn dev
  1. Open browser to http://localhost:3000

About

Users create accounts, login, and chat with other users on a message board. NextJs | Node/Express | PostgreSQL | Socket.io | TypeORM | JSON Web Token

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages