https://github.com/nbaua/angra-angulargraphql
This project is working prototype showing the use of GraphQL in an Angular Application.
https://github.com/nbaua/angra-angulargraphql
angular express graphql-api javascript
Last synced: 3 months ago
JSON representation
This project is working prototype showing the use of GraphQL in an Angular Application.
- Host: GitHub
- URL: https://github.com/nbaua/angra-angulargraphql
- Owner: nbaua
- Created: 2020-07-11T11:09:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T06:43:27.000Z (almost 3 years ago)
- Last Synced: 2025-03-04T14:49:28.892Z (7 months ago)
- Topics: angular, express, graphql-api, javascript
- Language: TypeScript
- Homepage:
- Size: 1.17 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# AnGra - An Angular GraphQL Demo Application
---
This project is working prototype showing the use of GraphQL in an Angular Application.
(Server uses the simple JS version - Angular project is TS version)> ### JavaScript + GraphQL + Angular + Express + SqlLite
## How to use
Simply clone this repository and run following command on terminal to update the required packages
> npm install
### Quick Check on GraphQL Server
> node index
Run the following query on localhost:1000/graphql
{
flights(flight_code: "9E-3422") {
flight_code
origin
destination
carrier {
tailnum
flight_ref
airline
}
}
}---
### Quick check on Angular App
Run the following command after starting the server in another terminal by switching to client directory
> ng serve
---
Disclaimer:
For simplicity and to make things easy to understand, the queries and resolvers are included in the index.js files itself. Please follow the best coding practices at your end, do NOT replicate this structure for your actual project.