This is a basic project that includes PHP Nette + Nextras ORM as backend and using React + UrQL for GraphQL api.
- run
composer install
- create
config.local.neon
inconfig
folder - enter
www/app
folder - run
yarn install
ornpm install
- go into
www/app/graphql
folder and run shema generation fromschema.graphql
file - run
yarn schema
to generate GraphQL schema for React - run your PHP server in the
www
folder (iephp -S localhost:8000
) - run the React app (by running
yarn start
in thewww/app
folder) - your React App should start and you should see
Hello World
in the console - that means the test GraphQL query ran successfuly.