{"id":22432153,"url":"https://github.com/normalhuman01/watermelondb-server-prisma","last_synced_at":"2025-03-27T07:41:36.491Z","repository":{"id":213335632,"uuid":"733619557","full_name":"normalhuman01/watermelondb-server-prisma","owner":"normalhuman01","description":"a server designed for facilitating the synchronization of WatermelonDB instances with Prisma and Express","archived":false,"fork":false,"pushed_at":"2023-12-19T18:31:55.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T12:45:27.607Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/normalhuman01.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}},"created_at":"2023-12-19T18:31:15.000Z","updated_at":"2024-02-27T20:17:09.000Z","dependencies_parsed_at":"2023-12-20T14:08:37.418Z","dependency_job_id":null,"html_url":"https://github.com/normalhuman01/watermelondb-server-prisma","commit_stats":null,"previous_names":["normalhuman01/watermelondb-server-prisma"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fwatermelondb-server-prisma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fwatermelondb-server-prisma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fwatermelondb-server-prisma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/normalhuman01%2Fwatermelondb-server-prisma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/normalhuman01","download_url":"https://codeload.github.com/normalhuman01/watermelondb-server-prisma/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245805999,"owners_count":20675291,"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":[],"created_at":"2024-12-05T22:10:45.287Z","updated_at":"2025-03-27T07:41:36.462Z","avatar_url":"https://github.com/normalhuman01.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# watermelondb-server-prisma\n\n## Local environment\n\n### Database\n\nYou need a PostgreSQL Database. You can start one with docker.\n\n```bash\n# Start a DB with docker\ndocker run --name watermelondb-server-prisma-db -p 5432:5432 -e POSTGRES_USER=\"myuser\" -e POSTGRES_PASSWORD=\"mypass123\" -e POSTGRES_DB=\"wdb\" -d postgres:14\n```\n\n### Hands-on\n\nThe project requires `node` installed and `yarn` insted of `npm`\n\n```bash\n# Setup credentials for the project (fill in the file)\ncp .env.example .env\n\n# Install dependencies\nyarn install\n\n# Start server\nyarn watch\n```\n\n## Docker environment\n\nThe app and the database must be on the same network. This can be achieved manually, ...\n\n```bash\n# Build image\ndocker build -t watermelondb-server-prisma .\n\n# Create network\ndocker network create wdbs\n\n# Deploy database on the network\ndocker run --name watermelondb-server-prisma-db -p 5432:5432 -e POSTGRES_USER=\"myuser\" -e POSTGRES_PASSWORD=\"mypass123\" -e POSTGRES_DB=\"wdb\" -d --network wdbs postgres:14\n\n# Test image (not working on local env for network issues)\ndocker run -e DATABASE_URL=\"postgres://myuser:mypass123@watermelondb-server-prisma-db:5432/wdb\" --name demo -p 5000:5000 --network wdbs watermelondb-server-prisma\n```\n\n... or with `docker-compose`\n\n```bash\n# Run with docker compose\ndocker-compose up -d --build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormalhuman01%2Fwatermelondb-server-prisma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnormalhuman01%2Fwatermelondb-server-prisma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnormalhuman01%2Fwatermelondb-server-prisma/lists"}