A web application for real-time chat communication built with React and Socket.IO, which allows users to sign up, add friends, and talk with them in real-time.
- client - React.js Chakra UI as frontend
- server - Node.js-Express as backend
- Front-End: React.js and Chakra UI
- Back-End: Node.js / Express.js / Socket.io
- Authenticaion: JWT
- Database: PostgreSQL and Redis
- Clone the repository
- CD into the repository and run
npm install - Make sure redis is installed in your system
redis-clifunctions properly - Create a postgres database and a table called users.
- Create a file named
.envin./packages/serverand make sure it has the following variables defined:
DATABASE_NAME=
DATABASE_HOST=
DATABASE_USER=
DATABASE_PASSWORD=
DATABASE_PORT=
JWT_SECRET= - Run
npm startfor frontend andnpm run devfor backend