The Telegram app is a chat application that allows users to send messages to other users in realtime. This application was built for a week with the main tools namely express, mysql, react, and socket.io.
-
Realtime chatting using socket.io
-
Realtime online/offline status using socket.io
-
Realtime notification using socket.io
-
Realtime deleting message using socket.io
-
JWT authentication
-
Nodemailer for email verification
-
Upload image using multer
-
Form validation using joi
-
CRUD for all tables required in the application
- Clone the repository
git clone https://github.com/chaerulmarwan20/telegram-app-backend.git
cd telegram-app-backend
- Install package
npm install
-
Create a new database with a name
telegram-app
and importtelegram-app.sql
from this repository -
Create .env file
# Host & Port
HOST=
PORT=
PORT_FRONTEND=
# Database
DB_HOST=
DB_USER=
DB_PASS=
DB_NAME=telegram-app
# Secret Key
SECRET_KEY=
# Email
EMAIL_USER=
EMAIL_PASS=
- Run application
npm run dev
Or
npm start