{"id":15409589,"url":"https://github.com/bradymholt/postgraphile-playground","last_synced_at":"2025-10-05T09:49:10.294Z","repository":{"id":55987831,"uuid":"256626419","full_name":"bradymholt/postgraphile-playground","owner":"bradymholt","description":"A web app using PostGraphile","archived":false,"fork":false,"pushed_at":"2020-12-02T18:38:12.000Z","size":1211,"stargazers_count":8,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T11:20:20.916Z","etag":null,"topics":["docker","graphql","postgraphile","postgresql","vue"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bradymholt.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}},"created_at":"2020-04-17T22:55:18.000Z","updated_at":"2020-12-03T10:02:57.000Z","dependencies_parsed_at":"2022-08-15T10:50:49.754Z","dependency_job_id":null,"html_url":"https://github.com/bradymholt/postgraphile-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bradymholt/postgraphile-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradymholt%2Fpostgraphile-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradymholt%2Fpostgraphile-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradymholt%2Fpostgraphile-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradymholt%2Fpostgraphile-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradymholt","download_url":"https://codeload.github.com/bradymholt/postgraphile-playground/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradymholt%2Fpostgraphile-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278437946,"owners_count":25986760,"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-10-05T02:00:06.059Z","response_time":54,"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":["docker","graphql","postgraphile","postgresql","vue"],"created_at":"2024-10-01T16:40:43.809Z","updated_at":"2025-10-05T09:49:10.251Z","avatar_url":"https://github.com/bradymholt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# postgraphile-playground\n\nThis project uses [Vue.js](https://vuejs.org/) as a web frontend, [PostGraphile](https://www.graphile.org/postgraphile/) as a GraphQL server, and PostgreSQL as a database.\n\n![2020-04-17 17 56 56](https://user-images.githubusercontent.com/759811/79620254-efa1c580-80d4-11ea-8330-5815a73216f9.gif)\n\nI used this project to learn more about GraphQL and attempt to setup a project structure that would allow rapid development by not having to make many changes in the server to support changes in the data schema.\n\nNotes:\n- Docker environment used for development and production\n- Deployment is handled with docker-compose `--host` option to target a remote Docker host\n- Production provisioning is handled with `./provision.sh` which simply sets sshd config and installs Docker\n- Configuration for entire stack is located in `.env` and `.env.production`\n- [db-migrate](https://www.npmjs.com/package/db-migrate) is used for database migrations\n- `./run` is a [jBash](https://www.npmjs.com/package/jbash) script that handles all development tooling and production deployment commands\n\n## Development\n\n```\n./run \u0026\u0026 open http://localhost:8080\n```\n\n### GraphQL\n\nGraphiQL:\n\n```\nopen http://localhost:8081/graphiql\n```\n\n### Database\n\nCreate new migration:\n\n```\n./run db:migration migrationName\n```\n\nMigrate:\n\n```\n./run db:up\n```\n\n## Production\n\n### Provision\n\n1. Create Droplet in Digital Ocean (Ubuntu / Starter / \\$5 plan)\n1. Create `.env.production` file with config for production. See `.env.production.example` as a template.\n1. Update the `HOST_NAME` variable to contain the Droplet IP address.\n1. Finally, run the following to make some config changes and install Docker on the droplet:\n\n```\n ./run provision --prod\n```\n\n### Deploy\n\n```\n./run deploy --prod\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradymholt%2Fpostgraphile-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradymholt%2Fpostgraphile-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradymholt%2Fpostgraphile-playground/lists"}