{"id":15629836,"url":"https://github.com/juffalow/express-graphql-example","last_synced_at":"2025-05-16T12:09:12.493Z","repository":{"id":41439969,"uuid":"97766730","full_name":"juffalow/express-graphql-example","owner":"juffalow","description":"Example project how to use Express and GraphQL. You can find working example with frontend at https://quotes.juffalow.com","archived":false,"fork":false,"pushed_at":"2025-01-15T16:42:47.000Z","size":1146,"stargazers_count":249,"open_issues_count":4,"forks_count":76,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-02T08:08:00.750Z","etag":null,"topics":["example-project","express","graphql","knexjs","nodejs","sql","typescript"],"latest_commit_sha":null,"homepage":"https://graphql.juffalow.com/graphql","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/juffalow.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-19T22:31:40.000Z","updated_at":"2025-02-11T01:16:02.000Z","dependencies_parsed_at":"2024-09-14T21:05:18.496Z","dependency_job_id":"c23f8e8f-efdb-46ce-a192-e32c9d5d1c45","html_url":"https://github.com/juffalow/express-graphql-example","commit_stats":{"total_commits":141,"total_committers":8,"mean_commits":17.625,"dds":0.06382978723404253,"last_synced_commit":"20f0b1f3f3e5f183d4568ec51cd1738fa463a523"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juffalow%2Fexpress-graphql-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juffalow%2Fexpress-graphql-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juffalow%2Fexpress-graphql-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juffalow%2Fexpress-graphql-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juffalow","download_url":"https://codeload.github.com/juffalow/express-graphql-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248018050,"owners_count":21034047,"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":["example-project","express","graphql","knexjs","nodejs","sql","typescript"],"created_at":"2024-10-03T10:29:11.697Z","updated_at":"2025-04-09T10:03:23.386Z","avatar_url":"https://github.com/juffalow.png","language":"TypeScript","readme":"# Express, GraphQL example\n\n[![License](https://img.shields.io/badge/License-MIT-blue.svg?maxAge=2592000)](https://github.com/juffalow/express-graphql-sequelize-example/blob/master/LICENSE)\n[![](https://github.com/juffalow/express-graphql-example/workflows/Lint/badge.svg)](https://github.com/juffalow/express-graphql-example/actions)\n[![](https://github.com/juffalow/express-graphql-example/workflows/Test/badge.svg)](https://github.com/juffalow/express-graphql-example/actions)\n[![codecov](https://codecov.io/gh/juffalow/express-graphql-example/branch/master/graph/badge.svg)](https://codecov.io/gh/juffalow/express-graphql-example)\n\n![out](https://user-images.githubusercontent.com/8142965/56870885-6e11dd00-6a16-11e9-8bba-230476808af2.png)\n\n## How to run the project using Docker\n\n```shell\ndocker-compose up --build\n```\n\nOpen GraphiQL in your browser [http://localhost:3010/graphql](http://localhost:3010/graphql)\n\n## How to run the project\n\nInstall dependencies:\n\n```shell\nyarn\n\n# or using npm\n\nnpm install\n```\n\nCreate `src/config.ts` or rename `src/config.example.js` and update file with your credentials:\n\n```js\nexport default {\n  port: 3010,\n  database: {\n    type: 'mysql',\n    connection: {\n      database : '',\n      host : '',\n      password : '',\n      user : '',\n    },\n    /*\n     * Migrations run on every start of the application.\n     * If you initialized the database manually (from the database.sql file),\n     * you don't need this.\n     */\n    migrations: {\n      directory: __dirname + '/migrations',\n    },\n  },\n};\n```\n\nRun the project:\n\n```shell\nyarn start\n\n# or using npm\n\nnpm start\n```\n\nOpen GraphiQL in your browser [http://localhost:3010/graphql](http://localhost:3010/graphql)\n\n## Examples\n\nYou can find example queries in [EXAMPLES.md](./EXAMPLES.md).\n\n## Old version\n\nHere is a link to an old version, that used `sequelize` and did not use connections:\n* [1.4.0](https://github.com/juffalow/express-graphql-sequelize-example/tree/1.4.0)\n\nHere is a link to older version, that did not use typescript, and used `buildSchema` method and graphql schema file:\n* [2.0.0](https://github.com/juffalow/express-graphql-example/tree/2.0.0)\n\nHere is a link to older version, that used typescript version `4.x` and `graphql-express` package to handle GrahpQL requests:\n* [3.3.0](https://github.com/juffalow/express-graphql-example/tree/3.3.0)\n\nHere is a link to older version, that used `yarn` version `1.22` and `express` version `4`:\n* [3.5.0](https://github.com/juffalow/express-graphql-example/tree/3.5.0)\n\n## License\n\n[MIT license](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuffalow%2Fexpress-graphql-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuffalow%2Fexpress-graphql-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuffalow%2Fexpress-graphql-example/lists"}