1- # generate -graphql-app
1+ # create -graphql-app
22
33[ ![ Build Status] ( https://travis-ci.org/tomyitav/generate-graphql-app.svg?branch=master )] ( https://travis-ci.org/tomyitav/generate-graphql-app )
44[ ![ 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 )
@@ -23,15 +23,15 @@ Cli tool for bootstrapping production grade GraphQL server, using:
2323
2424Please make sure you have Node.js version 8+, and type
2525
26- ``` npm install -g generate -graphql-app ```
26+ ``` npm install -g create -graphql-app ```
2727
2828## CLI commands
2929
3030### Init server command
3131
3232Open shell in the desired folder for bootstrapping the server, and typed:
3333
34- ``` gga init <project-name>```
34+ ``` cga init <project-name>```
3535
3636The command will prompt available server seeds options. Choose the boilerplate project
3737you want, and start coding!
@@ -47,7 +47,7 @@ Our recommended way for schema design is to create a type file for certain entit
4747Eventually, all entities schemas are merged.
4848To generate a matching resolver file for type file, execute the command:
4949
50- ``` gga r <type-file> <resolver file>```
50+ ``` cga r <type-file> <resolver file>```
5151
5252This will create a matching file, with all Query, Mutation and Subscription
5353definitions.
@@ -58,7 +58,7 @@ Our server resolvers should operate as a thin layer, or controller, that links b
5858and the server business logic. We use * services* for our model, to perform logic such as api fetching,
5959db operations, etc. In order to create a new service, run the command:
6060
61- ``` gga s <service-path> [--ignoreContext]```
61+ ``` cga s <service-path> [--ignoreContext]```
6262
6363This will create a new service file to services directory. Also, it will register the service on the
6464server * 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.
6969
7070Inside the project directory, type:
7171
72- ``` gga d```
72+ ``` cga d```
7373
7474This will run the server * deploy* script, and will move the server to production! :rocket :
7575
0 commit comments