Skip to content

chaerulmarwan20/telegram-app-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Backend - Telegram

Telegram

Table of Contents

Introduction

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.

Features

  • 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

Built With

Prerequisites

Installation

  1. Clone the repository
git clone https://github.com/chaerulmarwan20/telegram-app-backend.git
cd telegram-app-backend
  1. Install package
npm install
  1. Create a new database with a name telegram-app and import telegram-app.sql from this repository

  2. 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=
  1. Run application
npm run dev

Or

npm start

Documentation

Run in Postman

Link

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages