1
0
Fork
You've already forked timi_core
0
No description
  • JavaScript 100%
2025年03月25日 09:59:15 +07:00
assets/profile_default Latest 2025年03月11日 16:47:56 +07:00
database fix lastseen 'unknown' to 'offline' 2025年03月25日 09:59:15 +07:00
middleware beautify and sql 2025年03月03日 22:08:50 +07:00
routes added msg status 2025年03月24日 21:52:25 +07:00
utils add logger, bug: user android identified offline/not registered, idk bug is at rn or rj 2025年03月24日 12:43:28 +07:00
.gitignore Call Feature 2025年03月07日 06:22:55 +07:00
package-lock.json add logger, bug: user android identified offline/not registered, idk bug is at rn or rj 2025年03月24日 12:43:28 +07:00
package.json add logger, bug: user android identified offline/not registered, idk bug is at rn or rj 2025年03月24日 12:43:28 +07:00
README.md Call Feature 2025年03月07日 06:22:55 +07:00
server.js fix lastseen 'unknown' to 'offline' 2025年03月25日 09:59:15 +07:00

📩 Timi Core

Timi Core is the backend for a real-time messaging app like Telegram, built with Node.js, Socket.io, and SQLite. It supports text, images, videos, links (with previews), audio, and document sharing.


🚀 Features

JWT Authentication – Secure user login & sessions
Real-time Messaging – Powered by Socket.io
Media Storage – Store images, videos, and files locally
SQLite Database – May chaged to PostgreSQL/MySQL
Message Types – Text, media, and private chats


🛠 Tech Stack

  • Backend: Node.js (Express.js)
  • Real-time: Socket.io
  • Database: SQLite
  • Storage: Local storage
  • Auth: JSON Web Tokens (JWT)

📦 Installation

1️⃣ Clone the Repository

git clone https://github.com/alvlp-code/timi_core.git
cd timi_core

2️⃣ Install Dependencies

npm install

3️⃣ Setup Environment Variables

Create a .env file and configure:

JWT_SECRET=your_secret_key
PORT=3000
EMAIL_USER=email
EMAIL_PASS=pass
FRONTEND_URL=url

4️⃣ Run the Server

npm start

Server will run on http://localhost:3000 🚀


📖 API Endpoints

Method Endpoint Description
POST /api/auth/register Register a new user
POST /api/auth/login User login
GET /api/messages/:id Get chat messages
POST /api/messages/send Send a new message
GET /public/:id Get user list

📜 Full API documentation coming soon!


🎯 Roadmap

  • Message Type (add more mime/type (Contact, Location))
  • Add group/channel
  • Voice Call Web RTC
  • Optimize database queries


📝 License

This project is MIT licensed.


💙 JAWA JAWA JAWA!