{"id":13569926,"url":"https://github.com/graphql-elixir/phoenix-hipster-stack","last_synced_at":"2026-02-19T21:56:47.752Z","repository":{"id":78370587,"uuid":"52091386","full_name":"graphql-elixir/phoenix-hipster-stack","owner":"graphql-elixir","description":"Phoenix, Docker, Webpack, React, GraphQL, Relay, Flow, Eslint, Immutable.js, Jest and RethinkDB","archived":false,"fork":false,"pushed_at":"2016-11-30T09:44:43.000Z","size":111,"stargazers_count":170,"open_issues_count":0,"forks_count":14,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-04-15T22:22:08.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","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/graphql-elixir.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}},"created_at":"2016-02-19T14:02:27.000Z","updated_at":"2024-04-15T22:22:08.022Z","dependencies_parsed_at":"2023-05-26T17:00:31.784Z","dependency_job_id":null,"html_url":"https://github.com/graphql-elixir/phoenix-hipster-stack","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/graphql-elixir%2Fphoenix-hipster-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-elixir%2Fphoenix-hipster-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-elixir%2Fphoenix-hipster-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/graphql-elixir%2Fphoenix-hipster-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/graphql-elixir","download_url":"https://codeload.github.com/graphql-elixir/phoenix-hipster-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247134426,"owners_count":20889396,"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":"2024-08-01T14:00:45.991Z","updated_at":"2026-02-19T21:56:47.702Z","avatar_url":"https://github.com/graphql-elixir.png","language":"CSS","funding_links":[],"categories":["CSS","Example Projects"],"sub_categories":[],"readme":"# Phoenix hipster stack!\n* [Phoenix] (http://www.phoenixframework.org/)\n* [React] (https://facebook.github.io/react/)\n* [Relay](https://facebook.github.io/relay/)\n* [GraphQL](https://github.com/facebook/graphql)\n* [RethinkDB](https://www.rethinkdb.com/)\n* [Webpack](https://webpack.github.io/)\n  * Hot module reload\n* [Immutable.js](https://facebook.github.io/immutable-js/)\n* [Flow](http://flowtype.org/)\n* [Eslint](http://eslint.org/)\n* [Jest](https://facebook.github.io/jest/)\n* [Docker](https://www.docker.com/)\n\n### Example app\nPhoenix hipster stack comes with an example app.\n\nThe app is a port of the node.js app built in the [Building Data-driven React Applications with Relay, GraphQL, and Flux](http://app.pluralsight.com/courses/react-apps-with-relay-graphql-flux) course from Pluralsight.\nThe app is running on a 512mb single core droplet on digitalocean.\n\n*More instressed in Elm ?* Check out [elm-hipster-stack](https://github.com/carleryd/elm-hipster-stack)\n\n### Getting Started\n\nClone this repo then:\n\n1. Install dependencies with `mix deps.get \u0026\u0026 npm i`\n2. Start rethinkDB `rethinkdb`\n3. Start Phoenix endpoint with `mix phoenix.server`\n4. Create database by going to `localhost:4000/reset`\n5. Visit `localhost:4000/graphql` to test the amazing graphiql interface\n6. Query the database\n  ```\n  query myQuery{\n    store{\n      authors {\n        id\n        name\n      }\n    }\n  }\n  \n  ```\n7. Visit `localhost:4000` for a basic relay app using the data.\n\n**Jest is not implemented. Feel free to contribute :)**\n\n## DOCKER \n1. `docker-compose build`\n2. `docker-compose up`\n3. `visit localhost:4001/reset`\n4. `visit localhost:4001`\n\n## Make your own project\n1. `git clone git@github.com:graphql-elixir/phoenix-hipster-stack.git \u003cname-of-your-project\u003e`\n2. `cd \u003cname-of-your-project\u003e rm -rf .git`\n3. `git init`\n4. `git remote add orgin \u003cyour-new-repo\u003e`\n5. `git push -u orgin master`\n\nWhen changeing the graphql schemas run \n`mix CreateSchema` to make a new `schema.json`. \nThis `schema.json` is used by Relay.\n\n\n## Running in production.\n```\nMyAwesomePrompt\u003e MIX_ENV=prod mix compile\nMyAwesomePrompt\u003e MIX_ENV=prod mix phoenix.digest\nMyAwesomePrompt\u003e MIX_ENV=prod PORT=4000 mix phoenix.server\n```\n\n\n###Used resourses\n* [updated-phoenix-webpack-react-setup](http://mikker.github.io/2016/02/04/updated-phoenix-webpack-react-setup.html)\n* GraphQL \u0026 RethinkDB\n  * [GraphQL-Elixir](https://github.com/joshprice/graphql-elixir)\n  * [plug_GraphQL](https://github.com/joshprice/plug_graphql)\n  * [graphql-phoenix-rethinkdb] (https://github.com/AdamBrodzinski/graphql-phoenix-rethinkdb)\n  * [phoenix-rethinkdb-example](https://github.com/AdamBrodzinski/phoenix-rethinkdb-example)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-elixir%2Fphoenix-hipster-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgraphql-elixir%2Fphoenix-hipster-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgraphql-elixir%2Fphoenix-hipster-stack/lists"}