File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 117
117
npm run local:init
118
118
` ` `
119
119
120
- This command will do 2 things:
120
+ This command will do 3 things:
121
121
122
- - create Database table
123
- - create Elasticsearch indexes
122
+ - create Database tables (drop if exists)
123
+ - create Elasticsearch indexes (drop if exists)
124
+ - import demo data to Database and index it to ElasticSearch (clears any existent data if exist)
124
125
125
126
5. 🚀 Start Topcoder TaaS API
126
127
153
154
| ` npm run services:up` | Start services via docker-compose for local development. |
154
155
| ` npm run services:down` | Stop services via docker-compose for local development. |
155
156
| ` npm run services:logs -- -f < service_name> ` | View logs of some service inside docker-compose. |
156
- | ` npm run local:init` | Creates Elasticsearch indexes and initializes Database. |
157
+ | ` npm run local:init` | Recreate Database and Elasticsearch indexes and populate demo data for local development (removes any existent data). |
158
+ | ` npm run local:reset` | Recreate Database and Elasticsearch indexes (removes any existent data). |
157
159
| ` npm run cov` | Code Coverage Report. |
158
160
| ` npm run migrate` | Run any migration files which haven' t run yet. |
159
161
| `npm run migrate:undo` | Revert most recent migration. |
Original file line number Diff line number Diff line change 23
23
"services:up" : " docker-compose -f ./local/docker-compose.yml up -d" ,
24
24
"services:down" : " docker-compose -f ./local/docker-compose.yml down" ,
25
25
"services:logs" : " docker-compose -f ./local/docker-compose.yml logs" ,
26
- "local:init" : " npm run create-index && npm run init-db" ,
26
+ "local:init" : " npm run local:reset && npm run data:import -- --force" ,
27
+ "local:reset" : " npm run delete-index -- --force && npm run create-index -- --force && npm run init-db force" ,
27
28
"cov" : " nyc --reporter=html --reporter=text mocha test/unit/*.test.js --timeout 30000 --exit"
28
29
},
29
30
"keywords" : [],
You can’t perform that action at this time.
0 commit comments