{"id":29721192,"url":"https://github.com/blockful/trustful-stellar-backend","last_synced_at":"2026-03-02T06:31:13.297Z","repository":{"id":272451505,"uuid":"907392000","full_name":"blockful/trustful-stellar-backend","owner":"blockful","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-14T18:17:28.000Z","size":328,"stargazers_count":0,"open_issues_count":6,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-23T20:02:48.329Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/blockful.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,"zenodo":null}},"created_at":"2024-12-23T13:28:50.000Z","updated_at":"2025-08-14T18:17:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"b39efbd3-3073-4b84-80de-4d16b828de32","html_url":"https://github.com/blockful/trustful-stellar-backend","commit_stats":null,"previous_names":["blockful-io/trustful-stellar-backend","blockful/trustful-stellar-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blockful/trustful-stellar-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockful%2Ftrustful-stellar-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockful%2Ftrustful-stellar-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockful%2Ftrustful-stellar-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockful%2Ftrustful-stellar-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blockful","download_url":"https://codeload.github.com/blockful/trustful-stellar-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blockful%2Ftrustful-stellar-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29994122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-02T01:47:34.672Z","status":"online","status_checked_at":"2026-03-02T02:00:07.342Z","response_time":60,"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":[],"created_at":"2025-07-24T14:31:46.401Z","updated_at":"2026-03-02T06:31:12.756Z","avatar_url":"https://github.com/blockful.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trustful Stellar Backend\n\n## Prerequisites\n\nBefore you begin, ensure you have the following installed:\n\n- Docker and Docker Compose (latest version)\n- Node.js (v20.18.1 or higher)\n\n### Environment Setup\n\nFor development, create `.env`:\n\n```bin/bash\nDATABASE_URL=\"postgresql://postgres:123@postgres:5432/nest\"\n```\n\n## Running the Application\n\nThe application uses Docker for consistent development environments. Follow these steps to get it running:\n\n1. Build and start the containers:\n\n```bash\ndocker compose up -d\n```\n\nThis command will:\n\n- Set up a PostgreSQL database\n- Create necessary database tables\n- Start the NestJS application\n- Watch for file changes during development\n\n2. Wait for the initialization to complete. You should see logs indicating the server is running.\n\nThe API will be available at http://localhost:3000.\n\n## Database Management\n\nWhen running the application for the first time or after schema changes:\n\n1. Generate Prisma client:\n\n```bash\nnpx prisma generate\n```\n\n2. Run migrations:\n\n```bash\nnpx prisma migrate dev\n```\n\n3. Seed the database (if needed):\n\n```bash\nnpm run prisma:seed\n```\n\n4. To view your database using Prisma Studio:\n\n```bash\nnpx prisma studio\n```\n\n## API Documentation\n\n### Available Endpoints\n\nTo access the Swagger documentation, enter the link with the application running:\n\n```bash\nhttp://localhost:3000/api\n```\n\n1. Get All Communities\n\n```bash\nGET /communities\n```\n\nReturns a list of all visible communities.\n\n2. Get Specific Community\n\n```bash\nGET /communities/:contractAddress\n```\n\nReturns detailed information for a specific community.\n\n3. Update Community Visibility\n\n```bash\nPATCH /communities/:contractAddress/visibility\n```\n\nUpdates the visibility status of a community.\nrequest body:\n\n```json\n{\n  \"isHidden\": true\n}\n```\n\n### Example Requests\n\n```bash\ncurl http://localhost:3000/communities\n```\n\nUpdating community visibility:\n\n```bash\ncurl -X PATCH http://localhost:3000/communities/[contract-address]/visibility \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"isHidden\": true}'\n```\n\n## Testing\n\nThe application includes comprehensive test coverage. Here's how to run different types of tests:\n\n1. Unit Tests:\n\n```bash\nnpm run test\n```\n\n2. E2E Tests:\n\n```bash\nnpm run test:e2e\n```\n\n3. Test Coverage:\n\n```bash\nnpm run test:cov\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockful%2Ftrustful-stellar-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblockful%2Ftrustful-stellar-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblockful%2Ftrustful-stellar-backend/lists"}