Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vinniko/sygraql
:bookmark: Symfony PHP framework + GraphQL test application
https://github.com/vinniko/sygraql
api graphql php symfony
Last synced: 9 days ago
JSON representation
:bookmark: Symfony PHP framework + GraphQL test application
- Host: GitHub
- URL: https://github.com/vinniko/sygraql
- Owner: Vinniko
- Created: 2023-10-19T13:59:16.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-03T07:47:37.000Z (about 1 year ago)
- Last Synced: 2024-11-21T16:17:54.061Z (2 months ago)
- Topics: api, graphql, php, symfony
- Language: PHP
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## SyGraQL (Symfony PHP framework + GraphQL test application)
## Installation
Copy .env from .env.example file and then write your database config
```bash
cp .env.example .env
```
Run composer install```bash
composer install
```Run migrations
```bash
php bin/console doctrine:migrations:migrate
```Run seeders
```bash
php bin/console doctrine:fixtures:load
```Run:
```bash
symfony serv
```
Enter in browser:```bash
localhost:8000
```Examples of requests:
Update Tag:
```graphql
mutation UpdateTag {
updateTag(tag: {id: 33, name: "Test", color: "black" , score: 333, type: FIRST}){
id,
name,
color,
score,
type
}
}
```GetStat:
```graphql
query GetStat {
getstat(start_date: "2023-10-17 00:00:00", end_date: "2023-10-23 00:00:00", type: FIRST){
complexityIndex,
standardDeviation,
averageValue
}
}
```