{"id":26367278,"url":"https://github.com/ntthanh2603/snet-backend","last_synced_at":"2025-07-09T23:08:01.787Z","repository":{"id":278041777,"uuid":"930326426","full_name":"ntthanh2603/SNet-Backend","owner":"ntthanh2603","description":"🚀 Project: Social Network 🌐 Tech Stack: NestJS 🏗, FastAPI ⚡, PostgreSQL 🛢, MongoDB 🍃, Elasticsearch 🔎, Redis 🔥, BullMQ 📨, Mailer ✉️, Faiss 🧠, Yolo 🎯  ","archived":false,"fork":false,"pushed_at":"2025-03-16T03:38:55.000Z","size":1940,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T04:20:54.500Z","etag":null,"topics":["elasticsearch","faiss","fastapi","nestjs-backend","nextjs","postgresql-database","redis-cache","social-network","yolo"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ntthanh2603.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-10T13:06:23.000Z","updated_at":"2025-03-16T03:38:58.000Z","dependencies_parsed_at":"2025-03-01T01:18:47.459Z","dependency_job_id":"28ad4ef0-cfb9-45b3-b7c1-85c95fc408b3","html_url":"https://github.com/ntthanh2603/SNet-Backend","commit_stats":null,"previous_names":["ntthanh2603/social-network-snet","ntthanh2603/social-network-snet-backend","ntthanh2603/snet-backend"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntthanh2603%2FSNet-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntthanh2603%2FSNet-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntthanh2603%2FSNet-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntthanh2603%2FSNet-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntthanh2603","download_url":"https://codeload.github.com/ntthanh2603/SNet-Backend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243933456,"owners_count":20370988,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elasticsearch","faiss","fastapi","nestjs-backend","nextjs","postgresql-database","redis-cache","social-network","yolo"],"created_at":"2025-03-16T21:16:07.314Z","updated_at":"2025-06-16T21:35:33.340Z","avatar_url":"https://github.com/ntthanh2603.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SNet - Modern Social Network Platform\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@nestjs/core.svg\" alt=\"NPM Version\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@nestjs/core.svg\" alt=\"Package License\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/~nestjscore\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@nestjs/common.svg\" alt=\"NPM Downloads\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://circleci.com/gh/nestjs/nest\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/circleci/build/github/nestjs/nest/master\" alt=\"CircleCI\" /\u003e\u003c/a\u003e\n  \u003ca href=\"https://discord.gg/G7Qnnhy\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/discord-online-brightgreen.svg\" alt=\"Discord\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## 🚀 Overview\n\nSNet is a powerful social networking platform built on modern technologies. The project leverages NestJS as its primary framework for building a scalable and efficient backend, with FastAPI serving as a secondary framework for AI-powered features and API processing.\n\n## 🔧 Tech Stack\n\n### Core Technologies\n\n- **[NestJS](https://nestjs.com/)**: Primary backend framework\n- **[FastAPI](https://fastapi.tiangolo.com/)**: Secondary framework for AI models and API processing\n- **[PostgreSQL](https://www.postgresql.org/)**: Main database\n- **[Redis](https://redis.io/)**: In-memory database for caching and real-time features\n- **[BullMQ](https://docs.bullmq.io/)**: Queue system for background job processing\n- **[Elasticsearch](https://www.elastic.co/)**: Search engine for content indexing\n- **[FAISS](https://github.com/facebookresearch/faiss)**: Vector similarity search for AI features\n\n## 🗂️ Project Structure\n\n```\n├── src/                    # Backend system\n├── model-ai/               # Models AI use FastAPI, Huggingface, Faiss...\n├── docs/                   # Documents for project and images for README.md\n├── public/                 # Data images/videos of app\n├── test/                   # Files test app\n├── docker-compose.yaml     # Manager containers\n├── README.md               # Project documentation (this file)\n└── .gitignore              # Block files when push github\n```\n\n#### Model detect image 16+ [**click here**](https://github.com/ntthanh2603/ImageGuard.git)\n\n#### Model AI segmentation analysis [**click here**](https://github.com/ntthanh2603/segmentation-analysis.git)\n\n#### Database [**click here**](https://drive.google.com/file/d/1ZPQa1NhCKHPOJKAGEMPWNWbutVYLUWsU/view?usp=sharing)\n\n## ⚙️ Installation and Setup\n\n### Using Docker (Recommended)\n\n```bash\n# Create and run all services\ndocker-compose up\n\n# To shut down and remove volumes\ndocker-compose down -v\n```\n\n### Manual Setup\n\n```bash\n# Install dependencies\nnpm install --legacy-peer-deps\n\n# Development mode with hot-reload\nnpm run dev\n```\n\n## 🔄 Architecture\n\nSNet follows a microservices architecture:\n\n1. **NestJS Backend**: Handles core application logic, authentication, and main API endpoints\n2. **FastAPI Services**: Process AI-related tasks and specialized API endpoints\n3. **Database Layer**: PostgreSQL for persistent storage, Redis for caching\n4. **Search Services**: Elasticsearch for content search, FAISS for AI vector similarity search\n5. **Background Processing**: BullMQ for handling asynchronous tasks\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 💬 Support\n\nIf you encounter any issues or need support, please reach out:\n\n- [Facebook](https://www.facebook.com/ntthanh2603)\n\n## 📜 License\n\nSNet is [MIT licensed](LICENSE).\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/images/thanks-for-watching.jpg\" alt=\"Thanks for watching\" width=\"400\" /\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntthanh2603%2Fsnet-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntthanh2603%2Fsnet-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntthanh2603%2Fsnet-backend/lists"}