1
- # generate -graphql-app
1
+ # create -graphql-app
2
2
3
3
[ ![ Build Status] ( https://travis-ci.org/tomyitav/generate-graphql-app.svg?branch=master )] ( https://travis-ci.org/tomyitav/generate-graphql-app )
4
4
[ ![ Coverage Status] ( https://coveralls.io/repos/github/tomyitav/generate-graphql-app/badge.svg?branch=master )] ( https://coveralls.io/github/tomyitav/generate-graphql-app?branch=master )
@@ -31,7 +31,7 @@ Please make sure you have Node.js version 8+, and type
31
31
32
32
Open shell in the desired folder for bootstrapping the server, and typed:
33
33
34
- ``` gga init <project-name>```
34
+ ``` cga init <project-name>```
35
35
36
36
The command will prompt available server seeds options. Choose the boilerplate project
37
37
you want, and start coding!
@@ -47,7 +47,7 @@ Our recommended way for schema design is to create a type file for certain entit
47
47
Eventually, all entities schemas are merged.
48
48
To generate a matching resolver file for type file, execute the command:
49
49
50
- ``` gga r <type-file> <resolver file>```
50
+ ``` cga r <type-file> <resolver file>```
51
51
52
52
This will create a matching file, with all Query, Mutation and Subscription
53
53
definitions.
@@ -58,7 +58,7 @@ Our server resolvers should operate as a thin layer, or controller, that links b
58
58
and the server business logic. We use * services* for our model, to perform logic such as api fetching,
59
59
db operations, etc. In order to create a new service, run the command:
60
60
61
- ``` gga s <service-path> [--ignoreContext]```
61
+ ``` cga s <service-path> [--ignoreContext]```
62
62
63
63
This will create a new service file to services directory. Also, it will register the service on the
64
64
server * injector* file, and will add its definition to the context object, thus allowing its usage
@@ -69,7 +69,7 @@ You can exclude context file additions by passing the *ignoreContext* flag.
69
69
70
70
Inside the project directory, type:
71
71
72
- ``` gga d```
72
+ ``` cga d```
73
73
74
74
This will run the server * deploy* script, and will move the server to production! :rocket :
75
75
0 commit comments