No description
- JavaScript 100%
|
|
||
|---|---|---|
| assets/profile_default | Latest | |
| database | fix lastseen 'unknown' to 'offline' | |
| middleware | beautify and sql | |
| routes | added msg status | |
| utils | add logger, bug: user android identified offline/not registered, idk bug is at rn or rj | |
| .gitignore | Call Feature | |
| package-lock.json | add logger, bug: user android identified offline/not registered, idk bug is at rn or rj | |
| package.json | add logger, bug: user android identified offline/not registered, idk bug is at rn or rj | |
| README.md | Call Feature | |
| server.js | fix lastseen 'unknown' to 'offline' | |
📩 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! ✨