{"id":29223049,"url":"https://github.com/hafiz-shamnad/ticslab","last_synced_at":"2026-04-09T16:12:10.314Z","repository":{"id":299829541,"uuid":"1001900428","full_name":"Hafiz-shamnad/TicsLab","owner":"Hafiz-shamnad","description":"TicsLab is an IoT collaboration platform designed to simplify the creation and management of Internet of Things projects.","archived":false,"fork":false,"pushed_at":"2025-06-18T13:49:28.000Z","size":2185,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-18T14:40:46.504Z","etag":null,"topics":["iot","iot-application","iot-platform","nextjs","react","tailwindcss","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hafiz-shamnad.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-06-14T09:25:00.000Z","updated_at":"2025-06-18T13:49:32.000Z","dependencies_parsed_at":"2025-06-18T14:51:19.455Z","dependency_job_id":null,"html_url":"https://github.com/Hafiz-shamnad/TicsLab","commit_stats":null,"previous_names":["hafiz-shamnad/ticslab"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hafiz-shamnad/TicsLab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hafiz-shamnad%2FTicsLab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hafiz-shamnad%2FTicsLab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hafiz-shamnad%2FTicsLab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hafiz-shamnad%2FTicsLab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hafiz-shamnad","download_url":"https://codeload.github.com/Hafiz-shamnad/TicsLab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hafiz-shamnad%2FTicsLab/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263259114,"owners_count":23438778,"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":["iot","iot-application","iot-platform","nextjs","react","tailwindcss","typescript"],"created_at":"2025-07-03T04:32:52.724Z","updated_at":"2026-04-09T16:12:10.286Z","avatar_url":"https://github.com/Hafiz-shamnad.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛠️ TICS — Team Integrated Collaborative System\n\nTICS is a modern, full-stack collaborative development platform tailored for teams working on projects involving code, design, and file sharing. Think GitHub meets real-time collaboration, powered by secure APIs and a clean Next.js frontend.\n\n## 🚀 Features\n\n* 🧑‍💻 **Repository Management**: Create, manage, and collaborate on repositories\n* 📁 **File Upload \u0026 Sharing**: Upload files to repos securely, with role-based access control\n* 👥 **Collaborators System**: Add members with `read`, `write`, or `admin` roles\n* 🔒 **JWT Auth System**: Secure login and protected routes using FastAPI + Auth tokens\n* 🌐 **Cross-Origin Enabled**: CORS setup for frontend-backend integration\n* ⚙️ **Rate Limiting**: API protection with `slowapi`\n\n## 🧱 Tech Stack\n\n| Frontend          | Backend        | Auth                    | Dev Tools          |\n| ----------------- | -------------- | ----------------------- | ------------------ |\n| Next.js (App Dir) | FastAPI        | JWT Bearer Tokens       | Docker-ready (WIP) |\n| Tailwind CSS      | SQLAlchemy ORM | OAuth Support (Planned) | RESTful APIs       |\n\n---\n\n## 📂 Project Structure\n\n```\nticslab/\n├── backend/\n│   ├── auth/                # Authentication system (login, JWT, models)\n│   ├── repos/               # Repositories and files logic\n│   ├── storage/             # Uploaded files stored per repo\n│   ├── main.py              # FastAPI app entry\n│   └── config.py            # CORS + DB configs\n├── frontend/\n│   ├── app/\n│   │   ├── repos/[repoId]/files/page.tsx   # Files listing UI\n│   │   └── context/AuthContext.tsx         # Auth token context\n│   └── next.config.js       # Rewrites to backend API\n└── README.md\n```\n\n---\n\n## ⚙️ Getting Started\n\n### 🔧 Backend\n\n```bash\ncd backend\npython -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\nuvicorn main:app --reload\n```\n\n### 💻 Frontend\n\n```bash\ncd frontend\nnpm install\nnpm run dev\n```\n\nMake sure your `.env` and `config.py` are correctly configured.\n\n---\n\n## 🔐 Auth Flow\n\n* On login, a JWT token is issued and stored in frontend context\n* All protected endpoints require `Authorization: Bearer \u003ctoken\u003e`\n* User roles (`read`, `write`, `admin`) define repo access levels\n\n---\n\n## 📦 API Overview\n\n| Method | Endpoint                       | Description                    |\n| ------ | ------------------------------ | ------------------------------ |\n| GET    | `/api/repos/{id}/files/`       | List files in a repo           |\n| POST   | `/api/repos/{id}/files/upload` | Upload file (admin/write only) |\n| GET    | `/api/repos/{id}/files/{file}` | Download specific file         |\n| POST   | `/api/auth/login`              | Login and get token            |\n| GET    | `/api/auth/me`                 | Verify token and fetch user    |\n\n---\n\n## 🧪 Known Issues\n\n* Double requests in dev mode due to React Strict Mode\n* No real-time collaboration yet (planned via WebSockets)\n* Minimal error handling for file overwrite/duplicate logic\n\n---\n\n## 🤝 Contribution\n\nWant to contribute or test TICS for your team? Feel free to fork and submit a PR — or [start a discussion](#) with your idea.\n\n---\n\n## 📜 License\n\nMIT © Hafiz Shamnad\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhafiz-shamnad%2Fticslab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhafiz-shamnad%2Fticslab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhafiz-shamnad%2Fticslab/lists"}