My practice project for using Socket IO This project explores the implementation of realtime chat applications, utilizing Socket.IO for instant messaging and updates. Realtime chat apps enable users to engage in text-based conversations with other users or within groups in a dynamic and immediate manner.
- Room/Group Chat
- Search Menu
- Join Room/Group
- Create Room/Group
- Roles (Founder, User, Admin)
- Authentication And Authorization
- Database using Mysql
- Orm using Prisma
git clone https://github.com/weiwei2694/realtime-chat-apps-socket-io.git
cd realtime-chat
npm install
# SERVER
PORT=8000
# MYSQL
DATABASE_URL=""
# PASSPORT
SESSION_SECRET="secret key"
npx prisma generate
npx prisma db push
npm run dev
To run these commands, use npm run [command]
.
Command | Description |
---|---|
dev | Run the application in development mode using Nodemon. |
prettier | Check code formatting in your project using Prettier. |
prettier:fix | Check and fix code formatting in your project using Prettier. |