{"id":29011473,"url":"https://github.com/alexmochu/hackernews-react-apollo","last_synced_at":"2026-04-04T22:32:59.158Z","repository":{"id":92390562,"uuid":"155092406","full_name":"alexmochu/hackernews-react-apollo","owner":"alexmochu","description":"This is a fullstack isomorphic app built in Javascript(React/Node) based on the GraphQL API architecture.","archived":false,"fork":false,"pushed_at":"2020-07-06T08:57:43.000Z","size":1328,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-25T17:12:31.876Z","etag":null,"topics":["api-client","graphql","graphql-api","nodejs","postgresql","prisma","react"],"latest_commit_sha":null,"homepage":"","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/alexmochu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-10-28T16:39:25.000Z","updated_at":"2020-07-06T08:59:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"f89b8e89-e910-4285-8269-b6363e740c30","html_url":"https://github.com/alexmochu/hackernews-react-apollo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/alexmochu/hackernews-react-apollo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmochu%2Fhackernews-react-apollo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmochu%2Fhackernews-react-apollo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmochu%2Fhackernews-react-apollo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmochu%2Fhackernews-react-apollo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexmochu","download_url":"https://codeload.github.com/alexmochu/hackernews-react-apollo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmochu%2Fhackernews-react-apollo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-client","graphql","graphql-api","nodejs","postgresql","prisma","react"],"created_at":"2025-06-25T17:12:31.331Z","updated_at":"2026-04-04T22:32:59.147Z","avatar_url":"https://github.com/alexmochu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HackerNews Clone\nThis is a fullstack isomorphic app built in Javascript(React/Node) based on the GraphQL API architecture.\n\n## Tech Stack\n- React\n- Node\n- Apollo/GraphQl\n- Prisma\n- PostgreSQL\n## How to use\n\n### 1. Clone repository\n\n```sh\ngit clone https://github.com/alexmochu/hackernews-react-apollo.git\n```\n\n### 2. Install dependencies \u0026 Deploy the Prisma database API\n\nTo install the Prisma CLI globally with Yarn, use the following command:\n```sh\nyarn global add prisma\n```\n\nAlso, run the following commands:\n```sh\ncd hackernews-react-apollo/server\nyarn install\nprisma deploy\n```\n\nThen, follow these steps in the interactive CLI wizard:\n\n1. Select **Demo server**\n1. **Authenticate** with Prisma Cloud in your browser (if necessary)\n1. Back in your terminal, **confirm all suggested values**\n\n\u003cdetails\u003e\n \u003csummary\u003eAlternative: Run Prisma locally via Docker\u003c/summary\u003e\n\n1. Ensure you have Docker installed on your machine. If not, you can get it from [here](https://store.docker.com/search?offering=community\u0026type=edition).\n1. Create `docker-compose.yml` for MySQL (see [here](https://www.prisma.io/docs/prisma-server/database-connector-POSTGRES-jgfr/) for Postgres):\n    ```yml\n    version: '3'\n    services:\n      prisma:\n        image: prismagraphql/prisma:1.23\n        restart: always\n        ports:\n        - \"4466:4466\"\n        environment:\n          PRISMA_CONFIG: |\n            port: 4466\n            databases:\n              default:\n                connector: mysql\n                host: mysql\n                port: 3306\n                user: root\n                password: prisma\n                migrations: true\n      mysql:\n        image: mysql:5.7\n        restart: always\n        environment:\n          MYSQL_ROOT_PASSWORD: prisma\n        volumes:\n          - mysql:/var/lib/mysql\n    volumes:\n      mysql:\n    ```\n1. Run `docker-compose up -d`\n1. Run `prisma deploy`\n\n\u003c/details\u003e\n\n### 3. Start the server\n\nTo start the server, all you need to do is execute the `start` script by running the following command inside the `server` directory:\n\n```sh\nyarn start\n```\n\n\u003e **Note**: If you want to interact with the GraphQL API of the server inside a [GraphQL Playground](https://github.com/prisma/graphql-playground), you can navigate to [http://localhost:4000](http://localhost:4000).\n\n### 4. Run the app\n\nNow that the server is running, you can start the React app as well. The commands need to be run in a new terminal tab/window inside the root directory `hackernews-react-apollo` (because the current tab is blocked by the process running the server):\n\n```sh\nyarn install\nyarn start\n```\n\nYou can now open your browser and use the app on [http://localhost:3000](http://localhost:3000).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmochu%2Fhackernews-react-apollo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexmochu%2Fhackernews-react-apollo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmochu%2Fhackernews-react-apollo/lists"}