{"id":26697687,"url":"https://github.com/nwthomas/graphql-article-server","last_synced_at":"2025-06-11T07:32:16.425Z","repository":{"id":44103100,"uuid":"198551476","full_name":"nwthomas/graphql-article-server","owner":"nwthomas","description":"The Express, GraphQL, and PostgreSQL server for Nathan Thomas' article","archived":false,"fork":false,"pushed_at":"2023-01-11T04:50:31.000Z","size":224,"stargazers_count":2,"open_issues_count":16,"forks_count":5,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-26T21:35:44.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nwthomas.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}},"created_at":"2019-07-24T03:28:37.000Z","updated_at":"2023-03-08T15:18:48.000Z","dependencies_parsed_at":"2023-02-09T01:45:28.783Z","dependency_job_id":null,"html_url":"https://github.com/nwthomas/graphql-article-server","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/nwthomas%2Fgraphql-article-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwthomas%2Fgraphql-article-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwthomas%2Fgraphql-article-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nwthomas%2Fgraphql-article-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nwthomas","download_url":"https://codeload.github.com/nwthomas/graphql-article-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665347,"owners_count":21142119,"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":[],"created_at":"2025-03-26T21:29:46.577Z","updated_at":"2025-04-13T04:36:10.840Z","avatar_url":"https://github.com/nwthomas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GRAPHQL ARTICLE SERVER\n\nThis is the set of starter files for Nathan Thomas' [GraphQL Article](https://hackernoon.com/building-your-first-graphql-server-exbh3wpq). Note that this server does not satisfactorily run on initial clone. You will need to follow along in my article to flesh it out.\n\n## GETTING STARTED\n\n- Fork or clone the repository\n- Add a `.env` file. Copy over the contents of the `.env.example` file and then modify it with the following conditions:\n  - Create a `PORT` variable with the port number you want to run your server on (the server will default to `8000` if you don't set anything)\n  - Make sure to add the `NODE_TLS_REJECT_UNAUTHORIZED='0'` environment variable (you wouldn't want to use this for a real project, but we need it for how I'm having you set this database up fast)\n  - Implement a database instance of PostgreSQL somewhere such as Supabase (details in article) and assign the URL for that cluster to `DATABASE_URL` in your `.env` file\n- Install all full dependencies with `yarn` or `npm install` including:\n\n  - `cors`\n  - `dotenv`\n  - `helmet`\n  - `faker`\n  - `graphql`\n  - `graphql-playground-middleware-express`\n  - `knex`\n  - `pg`\n  - `nodemon`\n  - `jest`\n\n- Migrate all tables to your PostgreSQL instance by using the command `npx knex migrate:latest` in the root directory\n- Run all seeds to populate dummy data in the database by using the command `npx knex seed:run` in the root directory\n- Run `yarn server` or `npm run server` to launch server\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwthomas%2Fgraphql-article-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnwthomas%2Fgraphql-article-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnwthomas%2Fgraphql-article-server/lists"}