Skip to content

This project is working prototype showing the use of GraphQL in an Angular Application.

Notifications You must be signed in to change notification settings

nbaua/Angra-AngularGraphQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This project is working prototype showing the use of GraphQL in an Angular Application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •