All Projects → kamilkisiela → angular2-graphql-rest

kamilkisiela / angular2-graphql-rest

Licence: other
An Angular2 app with REST Api and GraphQL (apollo-client and angular2-apollo)

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
HTML
75241 projects
CSS
56736 projects

Angular2 with REST Api and GraphQL

An example app with REST Api working side by side with GraphQL using Apollo Client with angular2-apollo.

Step by Step

I created a step by step process where you can see how to migrate from REST Api to using just GraphQL.

You can find it on the steps branch.

Starting point - Working App with REST Api

1.X - Creating GraphQL endpoint

2.X - Building an app where REST Api works side by side with GraphQL

3.X - Migrating to use only GraphQL

App

working with REST Api #rest
git checkout rest
working with GraphQL #graphql
git checkout graphql
working with REST Api + GraphQL #both
git checkout both

How to start

We have to create needed sql tables

npm run migrate

Then load some data

npm run seed

Now, we're ready to start an app

npm start

OR just

npm run start:clean

to run all the commands above at once.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].