{"id":30103505,"url":"https://github.com/amanbig/fileshare","last_synced_at":"2025-08-09T22:02:01.467Z","repository":{"id":308337620,"uuid":"1020607742","full_name":"Amanbig/FileShare","owner":"Amanbig","description":"A modern, secure file sharing platform built with Next.js, NestJS, and Appwrite. Share files with expirable links, track downloads, and manage your uploads with a beautiful, responsive interface.","archived":false,"fork":false,"pushed_at":"2025-08-05T10:37:47.000Z","size":302,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-05T12:33:13.749Z","etag":null,"topics":["appwrite","bcrypt","jwt","nestjs","nextjs","tailwindcss"],"latest_commit_sha":null,"homepage":"https://file-share-three-mu.vercel.app","language":"TypeScript","has_issues":false,"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/Amanbig.png","metadata":{"files":{"readme":"README.Docker.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-07-16T06:11:26.000Z","updated_at":"2025-08-05T10:37:50.000Z","dependencies_parsed_at":"2025-08-05T12:43:25.909Z","dependency_job_id":null,"html_url":"https://github.com/Amanbig/FileShare","commit_stats":null,"previous_names":["amanbig/fileshare"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Amanbig/FileShare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanbig%2FFileShare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanbig%2FFileShare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanbig%2FFileShare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanbig%2FFileShare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Amanbig","download_url":"https://codeload.github.com/Amanbig/FileShare/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Amanbig%2FFileShare/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269643829,"owners_count":24452432,"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","status":"online","status_checked_at":"2025-08-09T02:00:10.424Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["appwrite","bcrypt","jwt","nestjs","nextjs","tailwindcss"],"created_at":"2025-08-09T22:00:45.096Z","updated_at":"2025-08-09T22:02:01.383Z","avatar_url":"https://github.com/Amanbig.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Setup for FileShare Application\n\nThis document explains how to run the FileShare application using Docker.\n\n## Prerequisites\n\n- Docker\n- Docker Compose\n\n## Environment Variables\n\nMake sure you have the following environment files configured:\n\n### Backend (.env)\n```\nAPPWRITE_ENDPOINT=https://cloud.appwrite.io/v1\nAPPWRITE_PROJECT_ID=your_project_id\nAPPWRITE_API_KEY=your_api_key\nAPPWRITE_DATABASE_ID=your_database_id\nAPPWRITE_USER_COLLECTION_ID=your_user_collection_id\nAPPWRITE_FILES_COLLECTION_ID=your_files_collection_id\nAPPWRITE_SHARES_COLLECTION_ID=your_shares_collection_id\nAPPWRITE_BUCKET_ID=your_bucket_id\nJWT_SECRET=your_jwt_secret\nBASE_URL=http://localhost:3000\n```\n\n### Frontend (.env)\n```\nNEXT_PUBLIC_BACKEND_URL=http://localhost:8000\nNESTJS_BACKEND_URL=http://backend:8000\n```\n\n## Production Deployment\n\n### Build and run the application:\n```bash\ndocker-compose up --build\n```\n\n### Run in detached mode:\n```bash\ndocker-compose up -d --build\n```\n\n### Stop the application:\n```bash\ndocker-compose down\n```\n\n## Development Mode\n\n### Build and run in development mode:\n```bash\ndocker-compose -f docker-compose.dev.yml up --build\n```\n\n### Run in detached mode:\n```bash\ndocker-compose -f docker-compose.dev.yml up -d --build\n```\n\n### Stop development containers:\n```bash\ndocker-compose -f docker-compose.dev.yml down\n```\n\n## Individual Services\n\n### Build and run backend only:\n```bash\ncd backend\ndocker build -t fileshare-backend .\ndocker run -p 8000:8000 --env-file .env fileshare-backend\n```\n\n### Build and run frontend only:\n```bash\ncd frontend\ndocker build -t fileshare-frontend .\ndocker run -p 3000:3000 --env-file .env fileshare-frontend\n```\n\n## Accessing the Application\n\n- Frontend: http://localhost:3000\n- Backend API: http://localhost:8000\n\n## Troubleshooting\n\n### View logs:\n```bash\n# All services\ndocker-compose logs\n\n# Specific service\ndocker-compose logs frontend\ndocker-compose logs backend\n```\n\n### Rebuild without cache:\n```bash\ndocker-compose build --no-cache\n```\n\n### Remove all containers and volumes:\n```bash\ndocker-compose down -v --remove-orphans\n```\n\n## Notes\n\n- The production build uses multi-stage builds for optimized image sizes\n- Development mode includes hot reloading with volume mounts\n- Both frontend and backend run as non-root users for security\n- The frontend uses Next.js standalone output for better Docker performance","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famanbig%2Ffileshare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famanbig%2Ffileshare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famanbig%2Ffileshare/lists"}