{"id":26613633,"url":"https://github.com/thomashawk11/linkup-azure-project","last_synced_at":"2025-07-08T04:35:31.754Z","repository":{"id":265310734,"uuid":"895757389","full_name":"ThomasHawk11/linkup-azure-project","owner":"ThomasHawk11","description":"A scalable, headless social media platform built with Node.js and Azure services, designed for content creators and digital communities.","archived":false,"fork":false,"pushed_at":"2024-12-18T08:59:32.000Z","size":109,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-18T09:40:55.934Z","etag":null,"topics":["microsoft-azure"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThomasHawk11.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}},"created_at":"2024-11-28T20:52:58.000Z","updated_at":"2024-12-18T08:59:35.000Z","dependencies_parsed_at":"2024-12-18T09:34:27.171Z","dependency_job_id":"8611fbed-208e-467a-b1fb-aad589a92e3f","html_url":"https://github.com/ThomasHawk11/linkup-azure-project","commit_stats":null,"previous_names":["thomashawk11/linkup-azure-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasHawk11%2Flinkup-azure-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasHawk11%2Flinkup-azure-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasHawk11%2Flinkup-azure-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThomasHawk11%2Flinkup-azure-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThomasHawk11","download_url":"https://codeload.github.com/ThomasHawk11/linkup-azure-project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245212003,"owners_count":20578438,"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":["microsoft-azure"],"created_at":"2025-03-24T04:35:39.793Z","updated_at":"2025-03-24T04:35:40.359Z","avatar_url":"https://github.com/ThomasHawk11.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Link Up Social Platform\n\nA scalable, headless social media platform built with Node.js and Azure services, designed for content creators and digital communities.\n\n- #### See [deployment guide](./README.md)\n\n## Setup\n\n1. Clone the repository\n2. Install dependencies\n3. Configure environment variables\n4. Run the application\n\n```bash\ngit clone\ncd link-up-platform\nnpm install\ncp .env.example .env\nnpm start\n```\n\n## System Overview\n\nLink Up is a flexible backend system that provides a robust foundation for social media applications. It offers a comprehensive API that can be integrated with any front-end interface.\n\n### Core Features\n\n- **User Management**\n  - Secure authentication\n  - Profile privacy controls\n  - User profile management\n\n- **Content Management**\n  - Create, read, update, and delete posts\n  - Media upload support (images, videos)\n  - Content search capabilities\n\n- **Media Handling**\n  - Secure file uploads\n  - Azure Blob Storage integration\n  - Media optimization\n\n### Architecture\n\nThe system is built using the following Azure services:\n\n- **Azure App Service**: Hosts the Node.js application\n- **Azure Cosmos DB**: Main database for user and post data\n- **Azure Blob Storage**: Media file storage\n- **Azure Cognitive Search**: Content search functionality\n- **Azure Communication Services**: User communication features\n\n## API Documentation\n\n### Authentication Endpoints\n\n#### Register User\n```http\nPOST /auth/register\nContent-Type: application/json\n\n{\n  \"username\": \"string\",\n  \"email\": \"string\",\n  \"password\": \"string\"\n}\n```\n\nResponse:\n```json\n{\n  \"token\": \"string\"\n}\n```\n\n#### Login\n```http\nPOST /auth/login\nContent-Type: application/json\n\n{\n  \"email\": \"string\",\n  \"password\": \"string\"\n}\n```\n\nResponse:\n```json\n{\n  \"token\": \"string\"\n}\n```\n\n### Posts Endpoints\n\n#### Create Post\n```http\nPOST /posts\nAuthorization: Bearer {token}\nContent-Type: multipart/form-data\n\n{\n  \"content\": \"string\",\n  \"media\": \"file\"\n}\n```\n\nResponse:\n```json\n{\n  \"id\": \"string\",\n  \"userId\": \"string\",\n  \"content\": \"string\",\n  \"mediaUrl\": \"string\",\n  \"createdAt\": \"string\"\n}\n```\n\n#### Delete Post\n```http\nDELETE /posts/{postId}\nAuthorization: Bearer {token}\n```\n\nResponse:\n```json\n{\n  \"message\": \"Post deleted successfully\"\n}\n```\n\n#### Get User Posts\n```http\nGET /posts/{userId}\nAuthorization: Bearer {token}\n```\n\nResponse:\n```json\n  {\n    \"id\": \"string\",\n    \"userId\": \"string\",\n    \"content\": \"string\",\n    \"mediaUrl\": \"string\",\n    \"createdAt\": \"string\"\n  }\n```\n\n### User Endpoints\n\n#### Get User\n```http\nGET /users/{userId}\nAuthorization: Bearer {token}\n```\n\nResponse:\n```json\n{\n  \"id\": \"string\",\n  \"username\": \"string\",\n  \"email\": \"string\",\n  \"isPrivate\": \"boolean\",\n  \"createdAt\": \"string\",\n  \"_rid\": \"string\",\n  \"_self\": \"string\",\n  \"_etag\": \"string\",\n  \"_attachments\": \"string\",\n  \"_ts\": \"integer\"\n}\n```\n\n#### Get User Profile\n```http\nGET /users/{userId}/profile\nAuthorization: Bearer {token}\n```\n\nResponse:\n```json\n{\n    \"id\": \"string\",\n    \"username\": \"string\",\n    \"isPrivate\": \"boolean\",\n}\n```\n\n### Search Endpoints\n\n#### Search Posts\n```http\nGET /search?q={query}\nAuthorization: Bearer {token}\n```\n\nResponse:\n```json\n[\n  {\n    \"id\": \"string\",\n    \"userId\": \"string\",\n    \"content\": \"string\",\n    \"mediaUrl\": \"string\",\n    \"createdAt\": \"string\"\n  }\n]\n```\n\n## Security\n\n- JWT-based authentication\n- Secure file upload handling\n- Azure Key Vault integration for secrets\n- CORS protection\n- Rate limiting\n\n## Error Handling\n\nAll API endpoints return standard HTTP status codes:\n\n- 200: Success\n- 400: Bad Request\n- 401: Unauthorized\n- 403: Forbidden\n- 404: Not Found\n- 500: Internal Server Error\n\nError responses follow this format:\n```json\n{\n  \"error\": \"Error message description\"\n}\n```\n\n## Data Models\n\n### User\n```json\n{\n  \"id\": \"string\",\n  \"username\": \"string\",\n  \"email\": \"string\",\n  \"isPrivate\": \"boolean\",\n  \"createdAt\": \"string\"\n}\n```\n\n### Post\n```json\n{\n  \"id\": \"string\",\n  \"userId\": \"string\",\n  \"content\": \"string\",\n  \"mediaUrl\": \"string\",\n  \"createdAt\": \"string\"\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomashawk11%2Flinkup-azure-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomashawk11%2Flinkup-azure-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomashawk11%2Flinkup-azure-project/lists"}