{"id":21253040,"url":"https://github.com/lazhari/hacker-news-api","last_synced_at":"2026-04-10T12:04:41.499Z","repository":{"id":41791356,"uuid":"185679650","full_name":"Lazhari/hacker-news-api","owner":"Lazhari","description":"Hacker new API clone using Prisma and graphql-yoga","archived":false,"fork":false,"pushed_at":"2022-12-22T11:06:22.000Z","size":2051,"stargazers_count":0,"open_issues_count":13,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T21:09:36.840Z","etag":null,"topics":["docker","docker-compose","graphql-server","graphql-yoga","hacker-news-api","healthcheck","mysql","prisma","prisma-cli"],"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/Lazhari.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":"2019-05-08T21:08:16.000Z","updated_at":"2019-08-17T19:04:20.000Z","dependencies_parsed_at":"2023-01-30T07:31:00.165Z","dependency_job_id":null,"html_url":"https://github.com/Lazhari/hacker-news-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/Lazhari%2Fhacker-news-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lazhari%2Fhacker-news-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lazhari%2Fhacker-news-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lazhari%2Fhacker-news-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lazhari","download_url":"https://codeload.github.com/Lazhari/hacker-news-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243690130,"owners_count":20331727,"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":["docker","docker-compose","graphql-server","graphql-yoga","hacker-news-api","healthcheck","mysql","prisma","prisma-cli"],"created_at":"2024-11-21T03:49:42.989Z","updated_at":"2025-12-31T00:22:23.868Z","avatar_url":"https://github.com/Lazhari.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hacker news API\n\nThis Project is my implementation of [how to graphql course](https://www.howtographql.com/) for Node.js and Prisma based on [graphql-yoga](https://github.com/prisma/graphql-yoga) and [prisma](https://www.prisma.io/).\n\n## How to use\n\n### 1. Get the project and install the dependencies\n\nClone the repository:\n\n```bash\ngit clone https://github.com/Lazhari/hacker-news-api.git\n```\n\nInstall Node dependencies\n\n```bash\ncd hacker-news-api\nyarn\n```\n\n### 2. Install the Prisma CLI\n\nTo run the server, you need the Prisma CLI. Please install it via NPM\n\n```bash\nnpm install -g prisma\n```\n\n### 3. Set up database \u0026 deploy Prisma datamodel\n\n```bash\nprisma deploy\n```\n\n### 4. Start the GraphQL server\n\nLaunch your GraphQL server with this command:\n\n```bash\nnpm run start\n```\n\n## Use Compose for dev environment\n\n### Run prisma deploy from docker-compose\n\n```bash\ndocker-compose run api prisma deploy\n```\n\n### Run docker-compose up ⚡ to start app\n\n```bash\ndocker-compose up\n```\n\n### Running prisma with docker-compose exec\n\nWhen you update your prisma models, you need to deploy that to prisma. Then you can run this command:\n\n```bash\ndocker-compose exec api prisma deploy\n```\n\nNavigate to [http://localhost:4000](http://localhost:4000) in your browser to explore the API of you GraphQL server in a [GraphQL Playground](https://github.com/prisma/graphql-playground).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazhari%2Fhacker-news-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazhari%2Fhacker-news-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazhari%2Fhacker-news-api/lists"}