@@ -49,9 +49,9 @@ git clone -o graphql-starter-kit -b master --single-branch \
49
49
https://github.com/kriasoft/graphql-starter-kit.git api.example.com
50
50
cd api.example.com
51
51
yarn install # Install project dependencies. Alternatively, npm install
52
- npm run db:create # Create a new database (see .env/DATABASE_URL)
53
- npm run db:migrate # Migrate database schema to the latest version
54
- npm run start # Launch the app. Alternatively, node scripts/start.js
52
+ yarn run db:create # Create a new database (see .env/DATABASE_URL)
53
+ yarn run db:migrate # Migrate database schema to the latest version
54
+ yarn start # Launch the app. Alternatively, node scripts/start.js
55
55
```
56
56
57
57
The GraphQL server should become available at [ http://localhost:5000/ ] ( http://localhost:5000/ )
@@ -60,8 +60,8 @@ The GraphQL server should become available at [http://localhost:5000/](http://lo
60
60
If you just need to build the project without launching a dev server, run one of these two commands:
61
61
62
62
``` bash
63
- npm run build # Compiles the app into the /build folder
64
- npm run build:watch # Compiles the app and starts watching for changes
63
+ yarn run build # Compiles the app into the /build folder
64
+ yarn run build:watch # Compiles the app and starts watching for changes
65
65
```
66
66
67
67
@@ -73,34 +73,34 @@ the way how to get to the new state and how to revert the changes in order to ge
73
73
state.
74
74
75
75
``` bash
76
- npm run db:create # Create a new database
77
- npm run db:drop # Drop the database
78
- npm run db:version # Print database schema version
79
- npm run db:migrate # Migrate database schema to the latest version
80
- npm run db:migrate:undo # Rollback the latest migration
81
- npm run db:migration < name> # Create a new migration from the template (see /migrations folder)
82
- npm run db:seed # Import reference data
76
+ yarn run db:create # Create a new database
77
+ yarn run db:drop # Drop the database
78
+ yarn run db:version # Print database schema version
79
+ yarn run db:migrate # Migrate database schema to the latest version
80
+ yarn run db:migrate:undo # Rollback the latest migration
81
+ yarn run db:migration < name> # Create a new migration from the template (see /migrations folder)
82
+ yarn run db:seed # Import reference data
83
83
```
84
84
85
85
86
86
## Testing
87
87
88
88
``` bash
89
- npm run lint # Find problematic patterns in code
90
- npm run check # Check source code for type errors
91
- npm run test # Run unit tests once
92
- npm run test:watch # Run unit tests in watch mode
89
+ yarn run lint # Find problematic patterns in code
90
+ yarn run check # Check source code for type errors
91
+ yarn run test # Run unit tests once
92
+ yarn run test:watch # Run unit tests in watch mode
93
93
```
94
94
95
95
96
96
## Debugging
97
97
98
98
``` bash
99
99
# Option 1:
100
- npm run build && node build/server.js --debug --nolazy
100
+ yarn run build && node build/server.js --debug --nolazy
101
101
102
102
# Option 2:
103
- npm run start -- --debug --nolazy
103
+ yarn run start -- --debug --nolazy
104
104
```
105
105
106
106
After launching the app in a debug mode [ attach your debugger] ( https://code.visualstudio.com/Docs/editor/debugging )
0 commit comments