Giter Club home page Giter Club logo

angular-graphql-demo's Introduction

Angular GraphQL Demo

This is a project created for a demonstration of using GraphQL with Angular.

Getting started

The Powerpoint for the demo is located here

Installation

Prerequisites:

Please install Angular-CLI by following these instructions. Note: Even though it's optional, we recommend you to use yarn instead of npm install for installing the dependencies.

This demo uses postgraphile for the backend API. which requires a postgres database

git clone https://github.com/syndesis/angular-graphql-demo
cd angular-graphql-demo

# install the project's dependencies
yarn # or run "npm install"

# create a postgres database
createdb demodb
psql demodb < create-roles.sql
psql demodb < demo.sql

# Edit .postgraphilerc.js and configure appendPlugins and connection settings as appropriate

# starts the postgraphile API service
yarn api

# starts the application in dev mode and watches your files for livereload
yarn start-dev

Documentation

For documentation on the Apollo Angular client, see here

For documentation on the Clarity Design System, including a list of components and example usage, see their website.

Directory structure

.
├── README.md

├── karma.conf.js              <- configuration of the test runner
├── package.json               <- dependencies of the project
├── protractor.config.js       <- e2e tests configuration
├── src/                       <- source code of the application
│   ├── app/
│   │   └── component/
│   │       └── <component>.component.html
│   │       └── <component>.component.scss
│   │       └── <component>.component.spec.ts
│   │       └── <component>.component.ts
│   │   └── app.component.html
│   │   └── app.component.scss
│   │   └── app.component.ts
│   │   └── app.e2e-spec.js    <- sample e2e spec file
│   │   └── app.module.ts
│   │   └── app.routing.ts
│   │   └── main.ts            <- boostrap file for the angular app
│   └── index.html
├── angular-cli.json           <- configuration of the angular-cli
├── tsconfig.json              <- configuration of the typescript project
├── tslint.json                <- sample configuration file for tslint
└── yarn.lock

License

This demo project is licensed under the MIT license.

Feedback

If you find a bug or want to request a new feature, please open a GitHub issue.

angular-graphql-demo's People

Contributors

jeeyun avatar hippee-lee avatar shijir avatar nishant-gh avatar craigjperry avatar pratheekhegde avatar royling avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.