{"id":21171390,"url":"https://github.com/shylgenkodmitry/react-apollo-express-postgres","last_synced_at":"2026-04-10T00:08:40.759Z","repository":{"id":42112289,"uuid":"188189102","full_name":"shylgenkodmitry/react-apollo-express-postgres","owner":"shylgenkodmitry","description":"A full-fledged Apollo Server 2 with Apollo Client 2 starter project with React, Express and PostgreSQL.","archived":false,"fork":false,"pushed_at":"2023-01-05T02:11:20.000Z","size":1604,"stargazers_count":0,"open_issues_count":41,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T10:51:15.046Z","etag":null,"topics":["apollo","client","express","nodejs","postgres","reactjs","server"],"latest_commit_sha":null,"homepage":null,"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/shylgenkodmitry.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-05-23T08:02:43.000Z","updated_at":"2019-05-23T08:36:34.000Z","dependencies_parsed_at":"2023-02-03T05:31:20.372Z","dependency_job_id":null,"html_url":"https://github.com/shylgenkodmitry/react-apollo-express-postgres","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/shylgenkodmitry%2Freact-apollo-express-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shylgenkodmitry%2Freact-apollo-express-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shylgenkodmitry%2Freact-apollo-express-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shylgenkodmitry%2Freact-apollo-express-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shylgenkodmitry","download_url":"https://codeload.github.com/shylgenkodmitry/react-apollo-express-postgres/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243617272,"owners_count":20320042,"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":["apollo","client","express","nodejs","postgres","reactjs","server"],"created_at":"2024-11-20T16:04:56.851Z","updated_at":"2025-12-30T20:06:00.081Z","avatar_url":"https://github.com/shylgenkodmitry.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fullstack-apollo-react-express-boilerplate-project\n\nA full-fledged Apollo Server 2 with Apollo Client 2 starter project with React, Express and PostgreSQL. \n\n[GraphQL Server Tutorial](https://www.robinwieruch.de/graphql-apollo-server-tutorial/)\n\n## Features\n\n* React (create-react-app) with Apollo Client 2\n  * Queries, Mutations, Subscriptions\n* Node.js with Express and Apollo Server 2\n  * cursor-based Pagination\n* PostgreSQL Database with Sequelize\n  * entities: users, messages\n* Authentication\n  * powered by JWT and local storage\n  * Sign Up, Sign In, Sign Out\n* Authorization\n  * protected endpoint (e.g. verify valid session)\n  * protected resolvers (e.g. e.g. session-based, role-based)\n  * protected routes (e.g. session-based, role-based)\n* performance optimizations\n  * example of using Facebook's dataloader\n* E2E testing\n\n### Client\n\n* `cd client`\n* `npm install`\n* `npm start`\n* visit `http://localhost:3000`\n\n### Server\n\n* `cd server`\n* `touch .env`\n* `npm install`\n* fill out *.env file* (see below)\n* `npm start`\n* optional visit `http://localhost:8000` for GraphQL playground\n\n#### .env file\n\nSince this boilerplate project is using PostgreSQL, you have to install it for your machine and get a database up and running. You find everything for the set up over here: [Setup PostgreSQL with Sequelize in Express Tutorial](https://www.robinwieruch.de/postgres-express-setup-tutorial). After you have created a database and a database user, you can fill out the environment variables in the *server/.env* file.\n\n```\nDATABASE=mydatabase\nDATABASE_USER=postgres\nDATABASE_PASSWORD=postgres\n\nSECRET=asdlplplfwfwefwekwself.2342.dawasdq\n```\n\nThe `SECRET` is just a random string for your authentication. Keep all these information secure by adding the *.env* file to your *.gitignore* file. No third-party should have access to this information.\n\n#### Testing\n\n* adjust `test-server` npm script with `TEST_DATABASE` environment variable in package.json to match your testing database name\n  * to match it from package.json: `createdb mytestdatabase` with psql\n* one terminal: npm run test-server\n* second terminal: npm run test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshylgenkodmitry%2Freact-apollo-express-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshylgenkodmitry%2Freact-apollo-express-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshylgenkodmitry%2Freact-apollo-express-postgres/lists"}