biteit / nette-react-graphql
Basic working project with React frontend with UrQL, Nette + Nextras ORM backend and GraphQL integration including query codegen.
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=8.0
- nette/application: ^3.1
- nette/bootstrap: ^3.1
- nette/caching: ^3.1
- nette/finder: ^2.5
- nette/http: ^3.1
- nette/mail: ^3.1
- nette/robot-loader: ^3.3
- nette/security: ^3.1
- nette/utils: ^3.2
- nextras/orm: ^4.0
- portiny/graphql-nette: ^6.1
- tracy/tracy: ^2.8
Requires (Dev)
- nette/tester: ^2.3
- symfony/thanks: ^1
This package is auto-updated.
Last update: 2025-01-15 01:46:39 UTC
README
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.