{"id":13880933,"url":"https://github.com/benawad/create-graphql-api","last_synced_at":"2025-04-06T12:07:29.970Z","repository":{"id":36205000,"uuid":"222329372","full_name":"benawad/create-graphql-api","owner":"benawad","description":"Set up a Typescript GraphQL API by running one command.","archived":false,"fork":false,"pushed_at":"2023-01-11T22:23:02.000Z","size":449,"stargazers_count":265,"open_issues_count":19,"forks_count":41,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-30T11:09:46.792Z","etag":null,"topics":["graphql","postgresql","typescript"],"latest_commit_sha":null,"homepage":"","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/benawad.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":"SECURITY.md","support":null}},"created_at":"2019-11-17T23:56:20.000Z","updated_at":"2025-03-23T13:20:09.000Z","dependencies_parsed_at":"2023-01-17T00:45:57.896Z","dependency_job_id":null,"html_url":"https://github.com/benawad/create-graphql-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fcreate-graphql-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fcreate-graphql-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fcreate-graphql-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benawad%2Fcreate-graphql-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benawad","download_url":"https://codeload.github.com/benawad/create-graphql-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478318,"owners_count":20945266,"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":["graphql","postgresql","typescript"],"created_at":"2024-08-06T08:03:40.754Z","updated_at":"2025-04-06T12:07:29.943Z","avatar_url":"https://github.com/benawad.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# create-graphql-api\n\n```\nnpx create-graphql-api my-api\ncd my-api\nnpm start\n```\n\n## Example\n\nBasic: https://www.youtube.com/watch?v=WhzIjYQmWvs\n\nAuth: https://www.youtube.com/watch?v=OVdPOExxKuU\n\n## Templates\n\nYou can do the following for an auth template:\n\n```\nnpx create-graphql-api my-api --auth\n```\n\n## How to Deploy to Heroku\n\n0. Make sure you have Git setup\n1. Setup Heroku CLI: https://devcenter.heroku.com/articles/getting-started-with-nodejs#set-up\n2. Create a `Procfile` in the root folder of your project and put the following in it:\n```\nweb: node dist/index.js\n```\n3. In your `package.json` add the following script to run the TypeScript compiler before Heroku runs your project:\n```\n\"heroku-postbuild\": \"tsc\"\n```\n4. In the root folder of your project, use the Heroku CLI to create a new project:\n```\nheroku create\n```\n5. Add a PostgreSQL database addon\n```\nheroku addons:create heroku-postgresql\n```\n6. Commit your code and push to Heroku\n```\ngit push heroku master\n```\n\nNote: You'll want to look at your `ormconfig.js` and configure the options you want for production.\n\nAlso see this video on how you can deploy to Digital Ocean with Dokku: https://www.youtube.com/watch?v=AdHwBKKQHZ4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenawad%2Fcreate-graphql-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenawad%2Fcreate-graphql-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenawad%2Fcreate-graphql-api/lists"}