biteit/nette-react-graphql

Basic working project with React frontend with UrQL, Nette + Nextras ORM backend and GraphQL integration including query codegen.

1.0 2022-03-14 19:13 UTC

This package is auto-updated.

Last update: 2022-06-14 19:55:58 UTC


README

This is a basic project that includes PHP Nette + Nextras ORM as backend and using React + UrQL for GraphQL api.

  1. run composer install
  2. create config.local.neon in config folder
  3. enter www/app folder
  4. run yarn install or npm install
  5. go into www/app/graphql folder and run shema generation from schema.graphql file
  6. run yarn schema to generate GraphQL schema for React
  7. run your PHP server in the www folder (ie php -S localhost:8000)
  8. run the React app (by running yarn start in the www/app folder)
  9. your React App should start and you should see Hello World in the console - that means the test GraphQL query ran successfuly.